Skip to content

Instantly share code, notes, and snippets.

View aknik's full-sized avatar
🐰
Hola

Aknik aknik

🐰
Hola
View GitHub Profile
@aknik
aknik / 1 Millon Digits PI (Hex)
Last active November 15, 2015 19:33 — forked from retrohacker/pi.text
First 8366 HEX digits of pi
243f6a8885a308d313198a2e03707344a4093822299f31d0082efa98ec4e6c89
452821e638d01377be5466cf34e90c6cc0ac29b7c97c50dd3f84d5b5b5470917
9216d5d98979fb1bd1310ba698dfb5ac2ffd72dbd01adfb7b8e1afed6a267e96
ba7c9045f12c7f9924a19947b3916cf70801f2e2858efc16636920d871574e69
a458fea3f4933d7e0d95748f728eb658718bcd5882154aee7b54a41dc25a59b5
9c30d5392af26013c5d1b023286085f0ca417918b8db38ef8e79dcb0603a180e
6c9e0e8bb01e8a3ed71577c1bd314b2778af2fda55605c60e65525f3aa55ab94
5748986263e8144055ca396a2aab10b6b4cc5c341141e8cea15486af7c72e993
b3ee1411636fbc2a2ba9c55d741831f6ce5c3e169b87931eafd6ba336c24cf5c
7a325381289586773b8f48986b4bb9afc4bfe81b6628219361d809ccfb21a991
@aknik
aknik / replace-debian-with-arch.txt
Created January 30, 2016 18:34 — forked from m-ou-se/replace-debian-with-arch.txt
Instructions to replace a live Debian installation with Arch
# Download latest archlinux bootstrap package, see https://www.archlinux.org/download/
wget http://ftp.nluug.nl/os/Linux/distr/archlinux/iso/2016.01.01/archlinux-bootstrap-2016.01.01-x86_64.tar.gz
# Make sure you'll have enough entropy for pacman-key later.
apt-get install haveged
# Install the arch bootstrap image in a tmpfs.
mount -t tmpfs none /mnt
cd /mnt
tar xvf ~/archlinux-bootstrap-2016.01.01-x86_64.tar.gz --strip-components=1
sudo apt-get update
sudo apt-get -y autoremove
sudo apt-get -y dist-upgrade
sudo apt-get -y upgrade
sudo apt-get -y autoremove
sudo localepurge
sudo deborphan | xargs sudo apt-get remove -y --purge
sudo apt-get autoclean -y
@aknik
aknik / gist:5fcc42278928f964718952d784d11833
Created July 13, 2016 18:38 — forked from nileshgr/gist:3388917
Delete all twitter DMs using this python script
#!/usr/bin/python2
# Go to dev.twitter.com/apps and create a new app; put the information here.
# You need the tweepy library.
consumer_secret = ''
consumer_key = ''
access_token_key = ''
access_token_secret = ''
PsExec.exe \\192.168.1.16 -s cmd -u usuario -p 1234 (si da error de acceso denegado usar las siguientes ordenes net use)
net use * /delete
net use \\192.168.1.16\ipc$ /user:usuario 1234
Copiamos la parte del registro que necesitamos, todas las demas opciones que he probado no funcionan al ser detectadas como virus
reg save HKLM\SAM C:\_sam
reg save HKLM\SYSTEM C:\_system
reg save HKLM\SECURITY C:\_security
@aknik
aknik / bloquea.sh
Last active November 12, 2016 01:29
iptables & arptables fuck fing
#THIS WILL CLEAR ALL EXISTING RULES!
echo 'Clearing all rules'
iptables -F
#iptables --policy INPUT DROP
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -s 192.168.1.1 -j ACCEPT
iptables -A INPUT -s 192.168.1.103 -j ACCEPT
#!/bin/sh
FWVER=0.01
#
# test extremely basic 2015.06.10 Ver:0.01
#
# run as sudo
#
echo "Loading test rule set version $FWVER..\n"
jdk-8u112-linux-i586.tar.gz
sudo update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_112/bin/java 1
sudo update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_112/bin/javac 1
sudo update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /opt/jdk1.8.0_112/jre/lib/i386/libnpjp2.so 1
sudo update-alternatives --set java /opt/jdk1.8.0_112/bin/java
sudo update-alternatives --set javac /opt/jdk1.8.0_112/bin/javac
sudo update-alternatives --set mozilla-javaplugin.so /opt/jdk1.8.0_112/jre/lib/i386/libnpjp2.so
Remove fucking NULL in txt files
sed -i 's/\x0//g' adguard.txt
@aknik
aknik / conexion_wpa_terminal
Created December 16, 2016 18:55
script bash conexion_wpa_terminal
WLAN="wlan0"
check_interval=30
router_ip="8.8.8.8"
#service network-manager stop
killall wpa_supplicant
airmon-ng check kill
ifconfig $WLAN down