-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1162 from NullArray/dev-beta
Version 3.1.5
- Loading branch information
Showing
19 changed files
with
576 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import requests | ||
from bs4 import BeautifulSoup | ||
|
||
|
||
class HoneyHook(object): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
-iL | ||
-iR | ||
--exclude | ||
--excludefile | ||
-sL | ||
-sn | ||
-Pn | ||
-PS | ||
-PA | ||
-PU | ||
-PY | ||
-PE | ||
-PP | ||
-PM | ||
-PO | ||
-n | ||
-R | ||
--dns-servers | ||
--system-dns | ||
--traceroute | ||
-sS | ||
-sT | ||
-sA | ||
-sW | ||
-sM | ||
-sU | ||
-sN | ||
-sF | ||
-sX | ||
--scanflags | ||
-sI | ||
-sY | ||
-sZ | ||
-sO | ||
-b | ||
-p | ||
--exclude-ports | ||
-F | ||
-r | ||
--top-ports | ||
--port-ratio | ||
-sV | ||
--version-intensity | ||
--version-light | ||
--version-all | ||
--version-trace | ||
-sC | ||
--script | ||
--script-args | ||
--script-args-file | ||
--script-trace | ||
--script-updatedb | ||
--script-help | ||
-O | ||
--osscan-limit | ||
--osscan-guess | ||
-T | ||
--min-hostgroup | ||
--max-hostgroup | ||
--min-parallelism | ||
--max-parallelism | ||
--min-rtt-timeout | ||
--max-rtt-timeout | ||
--initial-rtt-timeout | ||
--max-retries | ||
--host-timeout | ||
--scan-delay | ||
--max-scan-delay | ||
--min-rate | ||
--max-rate | ||
-f | ||
--mtu | ||
-D | ||
-S | ||
-e | ||
-g | ||
--source-port | ||
--proxies | ||
--data | ||
--data-string | ||
--data-length | ||
--ip-options | ||
--ttl | ||
--spoof-mac | ||
--badsum | ||
-oN | ||
-oX | ||
-oS | ||
-oG | ||
-oA | ||
-v | ||
-d | ||
--reason | ||
--open | ||
--packet-trace | ||
--iflist | ||
--append-output | ||
--resume | ||
--stylesheet | ||
--webxml | ||
--no-stylesheet | ||
-6 | ||
-A | ||
--datadir | ||
--send-eth/--send-ip | ||
--privileged | ||
--unprivileged | ||
-V |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import os | ||
import random | ||
|
||
VERSION = "3.1.2" | ||
VERSION = "3.1.5" | ||
|
||
|
||
def banner_1(line_sep="#--", space=" " * 30): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import socket | ||
import itertools | ||
|
||
from multiprocessing import Pool | ||
|
||
|
||
def generate_ip_range(selected_range): | ||
""" | ||
generate an IP address range from each provided node. | ||
for example `10.0.1-10.1-10` will return a generator | ||
object that has IP `10.0.1.1 - 10.0.10.10` in it | ||
""" | ||
octets = selected_range.split(".") | ||
chunks = [map(int, octet.split("-")) for octet in octets] | ||
ranges = [range(c[0], c[1] + 1) if len(c) == 2 else c for c in chunks] | ||
for address in itertools.product(*ranges): | ||
yield ".".join(map(str, address)) | ||
|
||
|
||
def check_ip_alive(ip): | ||
""" | ||
efficiently check if an IP address is alive or not | ||
by using the socket.gethostbyaddr function | ||
""" | ||
def is_valid_ip(ip): | ||
try: | ||
socket.inet_aton(ip) | ||
return True | ||
except: | ||
return False | ||
|
||
try: | ||
if not is_valid_ip(ip): | ||
return False | ||
else: | ||
return socket.gethostbyaddr(ip) | ||
except socket.herror: | ||
return False | ||
|
||
|
||
def check_ip_wrapper(generated_ips, limit=250): | ||
""" | ||
multiprocess the check_ip_alive function in order | ||
to proces a large amount of IP addresses quickly | ||
""" | ||
alive_ips = [] | ||
ips_to_use = [] | ||
i = 0 | ||
proc_pool = Pool(processes=35) | ||
|
||
for ip in generated_ips: | ||
ips_to_use.append(ip) | ||
i += 1 | ||
if i == limit: | ||
break | ||
for ip in ips_to_use: | ||
try: | ||
result = proc_pool.apply_async(check_ip_alive, args=(ip,)).get() | ||
if not result: | ||
pass | ||
else: | ||
alive_ips.append(ip) | ||
except Exception: | ||
pass | ||
proc_pool.close() | ||
return alive_ips |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
class AutoSploitAPIConnectionError(Exception): pass | ||
class AutoSploitAPIConnectionError(Exception): pass | ||
|
||
|
||
class NmapNotFoundException(Exception): pass | ||
|
||
|
||
class NmapScannerError(Exception): pass |
Oops, something went wrong.