MCPcopy Create free account

hub / github.com/AllGloryToTheHypnotoad/netscan2 / functions

Functions67 in github.com/AllGloryToTheHypnotoad/netscan2

↓ 6 callersMethodfind
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 callersMethodget
(self)
netscan/PassiveScan.py:60
↓ 3 callersMethodget
json response from www.macvendorlookup.com: {u'addressL1': u'1 Infinite Loop', u'addressL2': u'', u'addressL3': u'Cu
netscan/lib.py:166
↓ 3 callersFunctionreadAsset
(file_path, kind)
examples/http-server.py:141
↓ 2 callersFunctioncheckSudo
()
netscan/lib.py:35
↓ 2 callersMethodcombine
lots to do
netscan/PassiveScan.py:368
↓ 2 callersFunctioncommand
(cmd)
examples/roku.py:31
↓ 2 callersMethodcommand
(self, cmd)
netscan/lib.py:49
↓ 2 callersFunctiondiscover
(service, timeout=5, retries=1, mx=3)
examples/roku.py:139
↓ 1 callersMethodadd_colons_to_mac
This function accepts a 12 hex digit string and converts it to a colon separated string
netscan/PassiveScan.py:63
↓ 1 callersMethodchange
Has the file changed? return True - file has changed False - the file is still the same
examples/http-server.py:41
↓ 1 callersMethodcreateICMP
(self, msg)
netscan/ActiveScan.py:106
↓ 1 callersMethoddecode
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 callersMethodfilter
The output from pcap is just a list of records, this condenses/combines the info into a network mapping.
netscan/PassiveScan.py:318
↓ 1 callersMethodgetHostIP
Need to get the localhost IP address in: none out: returns the host machine's IP address
netscan/ActiveScan.py:60
↓ 1 callersMethodgetHostMAC
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 callersMethodgetRecord
The response records (rr) in a dns packet all refer to the same host
netscan/PassiveScan.py:108
↓ 1 callersMethodgetip
(self, ip, ipv6=False)
netscan/PassiveScan.py:147
↓ 1 callersFunctionhandleArgs
()
examples/ascan.py:12
↓ 1 callersFunctionhandleArgs
()
examples/ipwhois.py:8
↓ 1 callersFunctionhandleArgs
()
examples/gethostname.py:9
↓ 1 callersFunctionhandleArgs
()
examples/getvendor.py:9
↓ 1 callersFunctionhandleArgs
()
examples/capture.py:8
↓ 1 callersFunctionmain
()
examples/ascan.py:40
↓ 1 callersFunctionmain
()
examples/ipwhois.py:31
↓ 1 callersFunctionmain
()
examples/pscan.py:20
↓ 1 callersFunctionmain
()
examples/gethostname.py:23
↓ 1 callersFunctionmain
()
examples/getvendor.py:22
↓ 1 callersFunctionmain
()
examples/capture.py:25
↓ 1 callersMethodopenPort
(self, ip, port)
netscan/ActiveScan.py:169
↓ 1 callersMethodpcap
opens a pcap file and reads the contents
netscan/PassiveScan.py:276
↓ 1 callersMethodping
(self, ip)
netscan/ActiveScan.py:117
↓ 1 callersMethodprocess
Processes each packet from pcap
netscan/PassiveScan.py:267
↓ 1 callersMethodrr
(self, rec)
netscan/PassiveScan.py:288
↓ 1 callersMethodrun
(self)
netscan/lib.py:151
↓ 1 callersMethodscan
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 callersMethodscan
(self, ip)
netscan/ActiveScan.py:181
↓ 1 callersMethodscan
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 callersFunctionwhois
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
Methodadd_service
(self, zeroconf, type, name)
examples/mdns.py:11
Functionapp
(environ, start_response)
examples/http-server.py:164
Methodget
(self)
netscan/PassiveScan.py:121
Functionget_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
FunctionhandleArgs
()
examples/pscan.py:8
Methodlive
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
Methodmakefile
(self, *args, **kw)
examples/roku.py:119
Methodrecv_pkts
(self, hdr, data)
netscan/lib.py:142
Methodremove_service
(self, zeroconf, type, name)
examples/mdns.py:8
MethodscanNetwork
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
Functionscanner
(e)
examples/http-server.py:231
Functiontest_hostname
This won't work on travis.ci
tests/tests.py:12
Functiontest_vendor
()
tests/tests.py:19
Functiontest_whois
()
tests/tests.py:58