This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| schtasks /Create /RU username /RP password /SC MINUTE /MO 5 /TN taskname /TR "C:\Program Files\wget\wget.exe http://www.webaddress.com/script.php --spider" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| schtasks /Create /RU username /RP password /SC MONTHLY /MO 2 /TN taskname /TR "C:\Program Files\wget\wget.exe http://www.webaddress.com/script.php --spider" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| exec('schtasks /Delete /TN taskname /F'); | |
| exec('schtasks /Create /RU username /RP password /SC MINUTE /MO 2 /TN taskname /TR “C:\Program Files\wget\wget.exe --header=TASK_KEY:my-secret-key –U my-agent http://www.webaddress.com/script.php -r'); | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if('my-agent' !== $_SERVER['HTTP_USER_AGENT'] or | |
| $_SERVER['SERVER_ADDR'] !== $_SERVER['REMOTE_ADDR'] or | |
| !isset($_SERVER['HTTP_TASK_KEY']) or | |
| empty($_SERVER['HTTP_TASK_KEY']) or | |
| 'my-secret-key' !== $_SERVER['HTTP_TASK_KEY']) { | |
| print 'You do not have permission to execute this script!'; | |
| exit(); | |
| } | |
| print 'Executing operation.'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <VirtualHost *:80> | |
| ServerAdmin name@domain.com | |
| DocumentRoot c:\xampp\htdocs | |
| ServerName localhost | |
| </VirtualHost> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <VirtualHost *:80> | |
| ServerAdmin name@domain.com | |
| DocumentRoot c:\xampp\simonholywell.com\pub | |
| ServerName simonholywell.localhost | |
| <Directory c:\xampp\simonholywell.com\pub> | |
| Order allow,deny | |
| Allow from all | |
| </Directory> | |
| </VirtualHost> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BEGIN TRANSACTION | |
| GO | |
| CREATE TABLE dbo.Tmp_admin_accounts | |
| ( | |
| account_id int NOT NULL IDENTITY (1, 1), | |
| username varchar(20) NOT NULL, | |
| passhash char(40) NOT NULL | |
| ) ON [PRIMARY] | |
| GO | |
| SET IDENTITY_INSERT dbo.Tmp_admin_accounts ON |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $conn = mysql_connect('host','user','pass'); | |
| mysql_select_db('database',$conn); | |
| $SQL = "SHOW TABLES;"; | |
| $result = mysql_query($SQL, $conn); | |
| while($row = mysql_fetch_array($result)) | |
| print "SELECT * INTO SQLServerDBName.dbo.{$row[0]}<br /> | |
| FROM openquery(MySQL, 'SELECT * FROM `{$row[0]}`');<br /> | |
| "; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| EXEC master.dbo.sp_addlinkedserver @server = N'MYSQL', @srvproduct=N'MySQL', @provider=N'MSDASQL', @provstr=N'DRIVER={MySQL ODBC 3.51 Driver}; SERVER=MySQLServerIP; DATABASE=Db_NAME; USER=MySQLUserName; PASSWORD=MySQLPassword; OPTION=3' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class SHA1Crypt{ | |
| function keyED($txt,$encrypt_key) | |
| { | |
| $encrypt_key = sha1($encrypt_key); | |
| $ctr=0; | |
| $tmp = ""; | |
| for ($i=0;$i<strlen($txt);$i++){ | |
| if ($ctr==strlen($encrypt_key)) $ctr=0; | |
| $tmp.= substr($txt,$i,1) ^ substr($encrypt_key,$ctr,1); |