This file contains 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 | |
function hex_dump($data, $newline="\n"){ | |
static $from = ''; | |
static $to = ''; | |
static $width = 16; # number of bytes per line | |
static $pad = '.'; # padding for non-visible characters | |
if($from===''){ | |
for($i=0; $i<=0xFF; $i++){ | |
$from .= chr($i); | |
$to .= ($i >= 0x20 && $i <= 0x7E) ? chr($i) : $pad; |
This file contains 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
import sys | |
import pycurl | |
import struct | |
from binascii import unhexlify, crc32 | |
import urllib2 | |
transaction = str(sys.argv[1]) | |
data = urllib2.urlopen("https://blockchain.info/tx/"+transaction+"?show_adv=true") | |
dataout = b'' | |
atoutput = False | |
for line in data: |
This file contains 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 | |
$transaction_id = $argv[1]; | |
$url = "https://blockchain.info/tx/$transaction_id?show_adv=true&format=json"; | |
$result = file_get_contents($url); | |
$resultJSON = json_decode($result, true); | |
function hex2str($hex) { | |
$str = ''; | |
for($i=0;$i<strlen($hex);$i+=2) $str .= chr(hexdec(substr($hex,$i,2))); | |
return $str; | |
} |
This file contains 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
#!/bin/bash | |
sudo aptitude update -y && sudo aptitude safe-upgrade -y | |
sudo apt-get update -y && sudo apt-get upgrade -y | |
sudo apt-get autoremove -y | |
sudo apt-get install xfce4 xfce4-goodies task-xfce-desktop -y | |
apt-get update -y && apt-get upgrade -y | |
sudo reboot |
This file contains 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
/* | |
* headless_horseman.php: A PHP triangulator for MacOSX El Capitan | |
* utilizing SSID, BSSID, and RSSI for location | |
* By @Jesse_V_Burke | |
* | |
* Begin retro-ascii art: | |
* ooooooyhsdymdhdhdddddhhhhyysssossssssooooooooossssssssyyyyyyyyyhhhhhhhhhhhhyyssssssoooshsoooooooosss | |
* ooooosdoohyNysdhyydhhyyyssoooooooooooooooosssssssssyyyyyyyyyhhhhhhhhhhhhddhhyssssssooooshhssoooossss | |
* ssooohyoohNNyyhoshysyssshssysssssssssoooosssssssssyyyyyyyyyyyyyyhhhhhhhhhhyyyhhyhssyysooosdysyooosys | |
* ssosdyoshmNhydyohhosyoshyyyssooooo+++//:-----::/++osssyyyyyyyyyyyyhhhyyssssysssshyyyhhyooosNssyooooy |
This file contains 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
#!/bin/bash | |
curl "https://maps.googleapis.com/maps/api/browserlocation/json?browser=firefox&sensor=true" --data-urlencode "`nmcli -f SSID,BSSID,SIGNAL dev wifi list |perl -ne "if(s/^(.+?)\s+(..:..:..:..:..:..)\s+(.+?)\s*$/&wifi=mac:\2|ssid:\1|ss:\3&/g){print;}"`" |
This file contains 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 | |
//Examples: Wedding - 693848d56098a0ad16736bea7f24336c9b47a7f0a6f776659e8d01f00b46af76 | |
$GLOBALS['P2PKH_Count'] = 0; | |
$transaction_id = $argv[1]; | |
if($argv[0] == "bitcoinphp.php"){ | |
$url = "https://blockchain.info/tx/$transaction_id?show_adv=true&format=json"; | |
$result = file_get_contents($url); | |
$resultJSON = json_decode($result, true); | |
} | |
function hex2str($hex) { |
This file contains 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
#include <string> | |
#include <tesseract/baseapi.h> | |
#include <leptonica/allheaders.h> | |
#include <opencv2/opencv.hpp> | |
using namespace std; | |
using namespace cv; | |
int main(int argc, char* argv[]){ | |
string outText; |
This file contains 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 | |
require 'vendor/autoload.php'; | |
use phpwhois\phpwhois; | |
if (!isset($argv[1])) { | |
echo "\nUsage:\n\nphp ".__FILE__." domainname.com\n"; | |
exit(1); | |
} | |
$domain = $argv[1]; | |
$whois = new Whois(); | |
$whois->deep_whois=TRUE; |
This file contains 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
#!/bin/bash | |
#argv[1] = port | |
while read p; do | |
echo "$p" | |
nmap $p -p $1 | |
done <ips.txt |