Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/lua
---
-- Created 2014 by Jacob Hacker <jacobhacker@outlook.com>
-- Licensed under the MIT license: http://opensource.org/licenses/MIT
---
-- Install: sudo apt-get install lua5.2 libav-tools googlecl python-pip && sudo pip install megacl googlecl
--(------------)--
--(--- Util ---)--
--(------------)--
@JacobHacker
JacobHacker / rsa.cpp
Created May 24, 2014 07:15
Raw RSA encryption and decryption.
// g++ rsa.cpp -o rsa -lcryptopp
#include <iostream>
#include <cryptopp/rsa.h>
#include <cryptopp/integer.h>
#include <cryptopp/osrng.h>
int main(){
// Keys
CryptoPP::Integer n("0xbeaadb3d839f3b5f"), e("0x11"), d("0x21a5ae37b9959db9");
#Deps
sudo apt-get install libkeybinder-dev libxtst-dev
# SMART
# Install openjdk 7 & run this, note this may break other things using java
sudo update-java-alternatives -s java-1.7.0-openjdk-i386
# Download Simba (start in whatever directory you want, I chose ~/src/)
git clone https://github.com/MerlijnWajer/Simba.git
cd Simba
@JacobHacker
JacobHacker / toolbox.html
Created July 6, 2012 16:55
Jacob's Toolbox
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style type="text/css">
/* When making the kindle version, remove the margins */
body {
text-align:justify;
}
@JacobHacker
JacobHacker / template.html
Created June 26, 2012 20:22
template html file for e-books
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<style type="text/css">
/* When making the kindle version, remove the margins */
body { text-align:justify; /*margin-left:20%; margin-right:20%; */}
.toc{}
.title{ font-size:3em; text-align:center; }
.author{font-size:1.5em; text-align:center;}
<a name="ch1">Chapter I - Mr. Sherlock Holmes</a>
@JacobHacker
JacobHacker / toc.html
Created June 22, 2012 21:34
Table of contents
<style type="text/css">
.toc { margin-left: 5%; margin-bottom: .75em; font-size: 80%;}
</style>
<blockquote>
<p class="toc"><big><b>Contents</b></big></p><br>
<p class="toc"><a href="#ch1">
CHAPTER I. MR. SHERLOCK HOLMES.
</a></p>
@JacobHacker
JacobHacker / ProxyListGrab.sh
Created April 20, 2012 23:24
grab & grep blocked ip proxies from wikipedia
# First, download the last 1000 blocked users blocked by ProcseeBot
wget -O proxyLog.html 'http://en.wikipedia.org/w/index.php?title=Special:Log&limit=1000&type=block&user=ProcseeBot'
# Extract all ip addresses matching the regex. Because the IP is listed multiple times, sort with the unique
# option, and output to iplist
cat proxyLog.html | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}'|sort -u>iplist
# Scan for open port 8080, and output to scan.xml
nmap -Pn -n -iL iplist -p 8080 -oX scan.xml