• This repository has been archived on 28/Nov/2022
  • Stars
    star
    471
  • Rank 92,830 (Top 2 %)
  • Language
    PHP
  • Created almost 9 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

MASSCAN Web UI

masscan-web-ui

MASSCAN Web UI

https://www.offensive-security.com/offsec/masscan-web-interface/

Here's a quick guide to get started:

  • Install and setup your web server, copy over the MASSCAN web-ui files:
root@kali:~# apt-get install apache2 php libapache2-mod-php php-mysqli php-xml mysql-server
root@kali:~# git clone https://github.com/offensive-security/masscan-web-ui
root@kali:~# mv masscan-web-ui/* /var/www/html/
root@kali:~# cd /var/www/html/
  • Create a database, user, then import database.
root@kali:/var/www/html# mysql -u root -p
Enter password: 
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database masscan;
Query OK, 1 row affected (0.01 sec)

mysql> CREATE USER 'masscan'@'localhost' IDENTIFIED BY 'changem3';
Query OK, 0 rows affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON masscan.* TO 'masscan'@'localhost';
Query OK, 0 rows affected (0.01 sec)

mysql> exit
Bye
root@kali:/var/www/html# mysql -u root -p masscan < db-structure.sql 
Enter password: 
root@kali:/var/www/html# rm db-structure.sql index.html README.md

Update the web config file with the database information:

nano config.php
define('DB_DRIVER',	    'mysql');
define('DB_HOST',       'localhost');
define('DB_USERNAME',   'masscan');
define('DB_PASSWORD',   'changem3');
define('DB_DATABASE',   'masscan');

Now you can use masscan to scan your targets, while specifying an XML output. More information about banner grabbing with masscan can be found at https://github.com/robertdavidgraham/masscan#banner-checking.

masscan 10.0.0.0/8 -p80,21,53 --banners --source-ip 10.0.0.2 --max-rate 1000000 -oX scan-01.xml

Now let's import some scan results. In this example we imported the results of two class A scans:

root@kali:/var/www/html# ls -l scan*
-rw-r--r-- 1 root root 212929324 Dec  1 13:23 scan-01.xml
-rw-r--r-- 1 root root 700816226 Dec  1 13:55 scan-02.xml
root@kali:/var/www/html# php import.php scan-01.xml 

Do you want to clear the database before importing (yes/no)?: yes

Clearing the db
Reading file
Parsing file
Processing data (This may take some time depending on file size)

Summary:
Total records:738279
Inserted records:738279
Took about:3 minutes,18 seconds
root@kali:/var/www/html# php import.php scan-02.xml 

Do you want to clear the database before importing (yes/no)?: no
Reading file
Parsing file
Processing data (This may take some time depending on file size)

Summary:
Total records:2411974
Inserted records:2411974
Took about:9 minutes,41 seconds
root@kali:/var/www/html# 

A total of more than 3 million results are now easily searchable.

More Repositories

1

exploitdb

The legacy Exploit Database repository - New repo located at https://gitlab.com/exploit-database/exploitdb
7,676
star
2

kali-nethunter

The Kali NetHunter Project
3,464
star
3

exploitdb-bin-sploits

The legacy Exploit Database repository - New repo located at https://gitlab.com/exploit-database/exploitdb-bin-sploits
1,758
star
4

kali-arm-build-scripts

Kali Linux ARM build scripts
872
star
5

kali-linux-recipes

Kali Linux Recipes
612
star
6

exploitdb-papers

The legacy Exploit Database paper repository - New repo located at https://gitlab.com/exploit-database/exploitdb-papers
441
star
7

nethunter-app

NetHunter android application
311
star
8

nethunter-LRT

The Nethunter Linux Root Toolkit is a collection of bash scripts which install Nethunter onto a supported device.
304
star
9

nethunter-devices

NetHunter Devices
247
star
10

cryptsetup-nuke-keys

A patch for cryptsetup which adds the option to nuke all keyslots given a certain passphrase.
186
star
11

hid-backdoor-peensy

Reliable Teensy Penetration Testing Payload
Arduino
177
star
12

nethunter-utils

Kali Linux NetHunter utils package
95
star
13

kali-scripts

Various Kali Scripts
51
star
14

rfid-proxmark3-mods

Various Proxmark3 Mods
C
48
star
15

kali-linux-preseed

48
star
16

fldbg

Python
47
star
17

Kali-WSL-chroot

Kali Linux Windows App chroot builder script
43
star
18

kali-linux-docker-rolling

39
star
19

kali-sly-pi

kali-sly-pi
35
star
20

wireless-patches

Various Wireless Driver patches
30
star
21

gcc-arm-linux-gnueabihf-4.7

gcc-arm-linux-gnueabihf-4.7/
30
star
22

kali-uboot-images

Kali Linux u-boot images
26
star
23

gcc-arm-eabi-linaro-4.6.2

gcc-arm-eabi-linaro-4.6.2
24
star
24

term-nh

23
star
25

rfid-em4x-harvester

EM4x RFID Harvester using a Robotics Connection reader
Arduino
15
star