Exploit databaseDownload repository ZIP
GH-9148b66f9aab8b9021e473fe7a83b84c
0xm4ud/nosambanocry-cve-2017-7494
Sources for CVE-2017-7494
38 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files30
0xm4ud/nosambanocry-cve-2017-7494Revision 39ebe6d353ab
- ↑..Parent directory
- runalltestcases.bat
- runalltestcases.sh
- test_Dot11Base.py
- test_Dot11Decoder.py
- test_Dot11HierarchicalUpdate.py
- test_FrameControlACK.py
- test_FrameControlCFEnd.py
- test_FrameControlCFEndCFACK.py
- test_FrameControlCTS.py
- test_FrameControlPSPoll.py
- test_FrameControlRTS.py
- test_FrameData.py
- test_FrameManagement.py
- test_FrameManagementAssociationRequest.py
- test_FrameManagementAssociationResponse.py
- test_FrameManagementAuthentication.py
- test_FrameManagementDeauthentication.py
- test_FrameManagementDisassociation.py
- test_FrameManagementProbeRequest.py
- test_FrameManagementProbeResponse.py
- test_FrameManagementReassociationRequest.py
- test_FrameManagementReassociationResponse.py
- test_RadioTap.py
- test_RadioTapDecoder.py
- test_WEPDecoder.py
- test_WEPEncoder.py
- test_WPA.py
- test_WPA2.py
- test_helper.py
- test_wps.py
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
impacket/testcases/dot11/test_RadioTapDecoder.py
Python · 3,154 bytes#!/usr/bin/env python
# sorry, this is very ugly, but I'm in python 2.5
import sys
sys.path.insert(0,"../..")
from ImpactDecoder import RadioTapDecoder
import dot11, ImpactPacket
from binascii import hexlify
import unittest
class TestRadioTapDecoder(unittest.TestCase):
def setUp(self):
self.RadioTapData='\x00\x00\x20\x00\x67\x08\x04\x00\x30\x03\x1a\x25\x00\x00\x00\x00\x22\x0c\xd9\xa0\x02\x00\x00\x00\x40\x01\x00\x00\x3c\x14\x24\x11\x08\x02\x00\x00\xff\xff\xff\xff\xff\xff\x06\x03\x7f\x07\xa0\x16\x00\x19\xe3\xd3\x53\x52\x90\x7f\xaa\xaa\x03\x00\x00\x00\x08\x06\x00\x01\x08\x00\x06\x04\x00\x01\x00\x19\xe3\xd3\x53\x52\xa9\xfe\xf7\x00\x00\x00\x00\x00\x00\x00\x43\x08\x0e\x36'
self.radiotap_decoder = RadioTapDecoder()
self.in0=self.radiotap_decoder.decode(self.RadioTapData)
self.in1=self.in0.child()
self.in2=self.in1.child()
self.in3=self.in2.child()
self.in4=self.in3.child()
self.in5=self.in4.child()
self.in6=self.in5.child()
def test_00(self):
'Test RadioTap decoder'
self.assertEqual(str(self.in0.__class__), "dot11.RadioTap")
def test_01(self):
'Test Dot11 decoder'
self.assertEqual(str(self.in1.__class__), "dot11.Dot11")
def test_02(self):
'Test Dot11DataFrame decoder'
self.assertEqual(str(self.in2.__class__), "dot11.Dot11DataFrame")
def test_03(self):
'Test LLC decoder'
self.assertEqual(str(self.in3.__class__), "dot11.LLC")
def test_04(self):
'Test SNAP decoder'
self.assertEqual(str(self.in4.__class__), "dot11.SNAP")
# def test_05(self):
# 'Test ARP decoder'
# self.assertEqual(str(self.in5.__class__), "ImpactPacket.ARP")
# def test_05(self):
# 'Test Data decoder'
# self.assertEqual(str(self.in6.__class__), "ImpactPacket.Data")
def test_06(self):
'Test Protocol Finder'
p=self.radiotap_decoder.get_protocol(dot11.RadioTap)
self.assertEqual(str(p.__class__), "dot11.RadioTap")
p=self.radiotap_decoder.get_protocol(dot11.Dot11)
self.assertEqual(str(p.__class__), "dot11.Dot11")
p=self.radiotap_decoder.get_protocol(dot11.Dot11DataFrame)
self.assertEqual(str(p.__class__), "dot11.Dot11DataFrame")
p=self.radiotap_decoder.get_protocol(dot11.LLC)
self.assertEqual(str(p.__class__), "dot11.LLC")
p=self.radiotap_decoder.get_protocol(dot11.SNAP)
self.assertEqual(str(p.__class__), "dot11.SNAP")
#p=self.radiotap_decoder.get_protocol(ImpactPacket.ARP)
#self.assertEqual(str(p.__class__), "ImpactPacket.ARP")
#p=self.radiotap_decoder.get_protocol(ImpactPacket.Data)
#self.assertEqual(str(p.__class__), "ImpactPacket.Data")
# When not found, None is returned
p=self.radiotap_decoder.get_protocol(dot11.Dot11WPA)
self.assertEqual(p, None)
suite = unittest.TestLoader().loadTestsFromTestCase(TestRadioTapDecoder)
unittest.TextTestRunner(verbosity=2).run(suite)