Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AllGloryToTheHypnotoad/netscan2
/ functions
Functions
67 in github.com/AllGloryToTheHypnotoad/netscan2
⨍
Functions
67
◇
Types & classes
18
↓ 6 callers
Method
find
find a record for the same host and merges the info. If the host can't be found, then it adds a new record for the host.
netscan/PassiveScan.py:347
↓ 3 callers
Method
get
(self)
netscan/PassiveScan.py:60
↓ 3 callers
Method
get
json response from www.macvendorlookup.com: {u'addressL1': u'1 Infinite Loop', u'addressL2': u'', u'addressL3': u'Cu
netscan/lib.py:166
↓ 3 callers
Function
readAsset
(file_path, kind)
examples/http-server.py:141
↓ 2 callers
Function
checkSudo
()
netscan/lib.py:35
↓ 2 callers
Method
combine
lots to do
netscan/PassiveScan.py:368
↓ 2 callers
Function
command
(cmd)
examples/roku.py:31
↓ 2 callers
Method
command
(self, cmd)
netscan/lib.py:49
↓ 2 callers
Function
discover
(service, timeout=5, retries=1, mx=3)
examples/roku.py:139
↓ 1 callers
Method
add_colons_to_mac
This function accepts a 12 hex digit string and converts it to a colon separated string
netscan/PassiveScan.py:63
↓ 1 callers
Method
change
Has the file changed? return True - file has changed False - the file is still the same
examples/http-server.py:41
↓ 1 callers
Method
createICMP
(self, msg)
netscan/ActiveScan.py:106
↓ 1 callers
Method
decode
decode an ethernet packet. The dict returned indicates the type (arp,mdns,etc) which will indicate how to read/use the dict. https://support.a
netscan/PassiveScan.py:153
↓ 1 callers
Method
filter
The output from pcap is just a list of records, this condenses/combines the info into a network mapping.
netscan/PassiveScan.py:318
↓ 1 callers
Method
getHostIP
Need to get the localhost IP address in: none out: returns the host machine's IP address
netscan/ActiveScan.py:60
↓ 1 callers
Method
getHostMAC
Major flaw of NMAP doesn't allow you to get the localhost's MAC address, so this is a work around. in: none out: string of hex for MAC addres
netscan/ActiveScan.py:71
↓ 1 callers
Method
getRecord
The response records (rr) in a dns packet all refer to the same host
netscan/PassiveScan.py:108
↓ 1 callers
Method
getip
(self, ip, ipv6=False)
netscan/PassiveScan.py:147
↓ 1 callers
Function
handleArgs
()
examples/ascan.py:12
↓ 1 callers
Function
handleArgs
()
examples/ipwhois.py:8
↓ 1 callers
Function
handleArgs
()
examples/gethostname.py:9
↓ 1 callers
Function
handleArgs
()
examples/getvendor.py:9
↓ 1 callers
Function
handleArgs
()
examples/capture.py:8
↓ 1 callers
Function
main
()
examples/ascan.py:40
↓ 1 callers
Function
main
()
examples/ipwhois.py:31
↓ 1 callers
Function
main
()
examples/pscan.py:20
↓ 1 callers
Function
main
()
examples/gethostname.py:23
↓ 1 callers
Function
main
()
examples/getvendor.py:22
↓ 1 callers
Function
main
()
examples/capture.py:25
↓ 1 callers
Method
openPort
(self, ip, port)
netscan/ActiveScan.py:169
↓ 1 callers
Method
pcap
opens a pcap file and reads the contents
netscan/PassiveScan.py:276
↓ 1 callers
Method
ping
(self, ip)
netscan/ActiveScan.py:117
↓ 1 callers
Method
process
Processes each packet from pcap
netscan/PassiveScan.py:267
↓ 1 callers
Method
rr
(self, rec)
netscan/PassiveScan.py:288
↓ 1 callers
Method
run
(self)
netscan/lib.py:151
↓ 1 callers
Method
scan
brew install arp-scan arp-scan -l -I en1 -l use local networking info -I use a specific interface return {mac: mac_addr, ipv4: ip_addr}
netscan/ActiveScan.py:21
↓ 1 callers
Method
scan
(self, ip)
netscan/ActiveScan.py:181
↓ 1 callers
Method
scan
arpscan - {'mac': mac,'ipv4': ip} in: device for arp-scan to use (ie. en1) out: [host1,host2,...] where host is: { 'mac': '34:62:98:03:
netscan/ActiveScan.py:207
↓ 1 callers
Function
whois
Given a valid ipv4 address, it returns the whois info as a namedtuple: whois('172.217.12.4') HostInfo(cidr=u'172.217.0.0/16', netname=u'
examples/roku.py:42
Method
__init__
(self, arp)
netscan/PassiveScan.py:49
Method
__init__
(self, udp)
netscan/PassiveScan.py:76
Method
__init__
(self)
netscan/PassiveScan.py:264
Method
__init__
Everything is done in init(), don't call any methods, just access ip or mac.
netscan/ActiveScan.py:55
Method
__init__
(self)
netscan/ActiveScan.py:97
Method
__init__
(self, ports=list(range(1, 1024)))
netscan/ActiveScan.py:166
Method
__init__
(self, ports=list(range(1, 1024)))
netscan/ActiveScan.py:204
Method
__init__
(self, ip)
netscan/lib.py:60
Method
__init__
Use the avahi (zeroconfig) tools or dig to find a host name given an ip address. in: ip out: string w/ host name or 'unknown'
netscan/lib.py:88
Method
__init__
(self, iface, filename='test.pcap', pcFilter=None, num_packets=3000)
netscan/lib.py:129
Method
__init__
(self, mac, full=False)
netscan/lib.py:163
Method
__init__
watch_file - what file to watch
examples/http-server.py:34
Method
__init__
(self, response)
examples/roku.py:122
Method
__repr__
(self)
examples/roku.py:135
Method
add_service
(self, zeroconf, type, name)
examples/mdns.py:11
Function
app
(environ, start_response)
examples/http-server.py:164
Method
get
(self)
netscan/PassiveScan.py:121
Function
get_host_name
Use the avahi (zeroconfig) tools or dig to find a host name given an ip address. in: ip out: string w/ host name or 'unknown' if the
examples/roku.py:80
Function
handleArgs
()
examples/pscan.py:8
Method
live
open device Arguments here are: device snaplen (maximum number of bytes to capture _per_packet_) promiscious mode (1 for true), need Fal
netscan/PassiveScan.py:377
Method
makefile
(self, *args, **kw)
examples/roku.py:119
Method
recv_pkts
(self, hdr, data)
netscan/lib.py:142
Method
remove_service
(self, zeroconf, type, name)
examples/mdns.py:8
Method
scanNetwork
For our scanner, we are looking for a type value of 3 and a code value of 3, which are the Destination Unreachable class and Port Unreachable err
netscan/ActiveScan.py:133
Function
scanner
(e)
examples/http-server.py:231
Function
test_hostname
This won't work on travis.ci
tests/tests.py:12
Function
test_vendor
()
tests/tests.py:19
Function
test_whois
()
tests/tests.py:58