Skip to content

Instantly share code, notes, and snippets.

@73696e65
73696e65 / buildasn1.py
Created November 1, 2017 07:44 — forked from gnpar/buildasn1.py
Generate an asn1parse config for an RSA private key given p,q and e
#!/usr/bin/env python
import sys
helptext = """
Redirect output to asn1.conf and then create and check the key with:
openssl asn1parse -genconf asn1.conf -out key.der
openssl rsa -in key.der -inform der -text -check
"""
#### Extended Euclidean Algorithm and Modular Inverse
#!/usr/bin/env python
from sys import stdout
# http://www.computer-engineering.org/ps2keyboard/scancodes2.html
scancodes = {
"12": "[L SHFT]",
"1b": "S",
"1c": "A",
#!/usr/bin/env python
from sys import stdout
secret = "4e5d4e92865a4e495a86494b5a5d49525261865f5758534d4a89".decode("hex")
for x in secret:
stdout.write( chr(((ord(x) ^ 50 ^ 115) + 89) & 255) )
# huh, that actually worked!
#!/usr/bin/env python
from sys import stdout
from pwn import *
target = ("31.133.0.131", 9393)
def determine_length():
for i in range(1, 5000):
stdout.write("Trying {0}\n".format(i))
@73696e65
73696e65 / no-madvise.c
Created June 19, 2017 21:29 — forked from niedbalski/no-madvise.c
madvise tests
niedbalski@theos-mobile:~$ cat test-madvise.c
#include <sys/mman.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
int main(void) {
size_t size = sysconf(_SC_PAGE_SIZE) * 6; //24K
@73696e65
73696e65 / ftp.rb
Last active November 22, 2016 14:51
Used against Java Soap Service
#!/usr/bin/env ruby
require 'socket'
port = ARGV[0] || 31337
server = TCPServer.new port
puts "Listening on the port: #{port}"
loop do
@73696e65
73696e65 / tweepy-log.py
Last active June 30, 2016 19:20
Simple tweet logger to sqlite3 using streaming API
#!/usr/bin/env python3
import tweepy
from sqlite3 import connect
from os.path import isfile
from os import access, R_OK
from sys import exit
db_file = 'tweets.db'
@73696e65
73696e65 / geolocation-googleapi-mac-os-x.py
Last active February 20, 2019 10:18
Google Wifi Geolocation (Mac OS X)
#!/usr/bin/env python
# Locates nearby access points for input to The Google Maps Geolocation API
# MAC OS X only
# Based on: https://github.com/localtracker/Google-Wifi-Geolocation-GNU-Linux
from os import popen
from sys import exit
from urllib2 import urlopen
@73696e65
73696e65 / server.rb
Last active May 9, 2022 21:24
Autocomplete Password Stealing PoC (FF & Chrome)
#!/usr/bin/env ruby
require 'rubygems'
require 'thin'
require 'rack'
require 'sinatra'
# python -m SimpleHTTPServer
# ruby ./server
# http://127.0.0.1:4000/?lang='><script>alert()</script>

Keybase proof

I hereby claim:

  • I am 73696e65 on github.
  • I am sine (https://keybase.io/sine) on keybase.
  • I have a public key whose fingerprint is 83FC FD96 42F2 6326 0B47 ED6E 4FA7 31D8 1774 5CDB

To claim this, I am signing this object: