>>>fromsnmp_set_fuzzimport*>>>target='192.168.70.50'>>>port=80>>>count=10>>>nic=conf.route.route(target)[0]
>>>Target=SnmpTarget(name='test', monitor_port=port, oid='.1.3', version=2, target=target, nic=nic, fuzz_count=count)
>>>print(Target.set_packets)
>>> []
>>># This time we didn't scan Target>>># This cmd will read all packet from pcap file and save to Target.set_packets>>>Target.read_test_case_from_pcap('./output/192.168.70.50_snmp_set_packet_list.pcap')
>>>print(Target.set_packets)
<192.168.70.50_snmp_set_packet_list.pcap: TCP:0UDP:37ICMP:0Other:0>
>>> from snmp_set_fuzz import *
>>> target = '192.168.70.50'
>>> port = 80
>>> count = 10
>>> nic = conf.route.route(target)[0]
>>> Target = SnmpTarget(name='test', monitor_port=port, oid='.1.3', version=2, target=target, nic=nic, fuzz_count=count)
>>> Target.read_test_case_from_pcap('./output/192.168.70.50_snmp_set_packet_list.pcap')
>>> # Set_test_case_range can set specific test case to fuzz
>>> # If you want only fuzz No.8 test case, you can use this Target.set_test_case_range('8')
>>> # If you want fuzz test case up to No.8, you can use this Target.set_test_case_range('-8')
>>> # If you want fuzz test case from No.8, you can use this Target.set_test_case_range('8-')
>>> # If you want fuzz test case from No.8 to No.10, you can use this Target.set_test_case_range('8-10')
>>> # It's also support combine option, Target.set_test_case_range('-8,10,12,14-15,18-')
>>> Target.set_test_case_range('4-5')
>>> Target.fuzz()
[INFO ][snmp_set_fuzz.fuzz] Running test case No.4 0/10
[INFO ][snmp_set_fuzz.fuzz] Running test case No.4 1/10
[INFO ][snmp_set_fuzz.fuzz] Running test case No.4 2/10
[INFO ][snmp_set_fuzz.fuzz] Running test case No.4 3/10
[INFO ][snmp_set_fuzz.fuzz] Running test case No.4 4/10
[INFO ][snmp_set_fuzz.fuzz] Running test case No.4 5/10
[INFO ][snmp_set_fuzz.fuzz] Running test case No.4 6/10
[INFO ][snmp_set_fuzz.fuzz] Running test case No.4 7/10
[INFO ][snmp_set_fuzz.fuzz] Running test case No.4 8/10
[INFO ][snmp_set_fuzz.fuzz] Running test case No.4 9/10
[INFO ][snmp_set_fuzz.fuzz] Running test case No.5 0/10
[WARNING ][snmp_set_fuzz.fuzz] Target not response with snmp get packet in packet NO.0,TestCase No.5
[ERROR ][snmp_set_fuzz.fuzz] Can't Connect to Target at TCP Port: 80
>>> Target.save_fuzz_result()
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].