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
#!/bin/bash | |
## Script to make the latest Linux Kernel work with VMWare Workstation | |
## Automated since it was too annoying to run the commands after each Kernel update | |
## Tested with Linux Kernel 5.9.8 & VMWare Workstation 16.1.0 | |
## Alexander Hagenah (@xaitax) | |
VERSION=16.1.0 | |
wget https://github.com/mkubecek/vmware-host-modules/archive/workstation-${VERSION}.tar.gz |
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
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
server_name mysite.com www.mysite.com; | |
rewrite ^ https://$host$request_uri? permanent; | |
} | |
server { | |
listen 443 ssl default_server http2; |
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
#!/usr/bin/env python2 | |
import logging | |
logging.getLogger("scapy.runtime").setLevel(logging.ERROR) | |
from scapy.all import * | |
import sys, socket, struct, time, subprocess, atexit, select | |
from datetime import datetime | |
IEEE_TLV_TYPE_RSN = 48 | |
IEEE_TLV_TYPE_FT = 55 |
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
#!/usr/bin/env python | |
import logging | |
import sys | |
logging.getLogger("scapy.runtime").setLevel(logging.ERROR) | |
if len(sys.argv) != 5: | |
print '' | |
print 'arp.py Alexander Hagenah - ah@primepage.de' | |
print '' |
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
#!/bin/bash | |
# | |
# @desc: MitM (Ettercap) & SSLStrip2 & dns2proxy | |
# | |
# Tool runs if sslstrip2 & dns2proxy have subfolders from | |
# where the script is run | |
# | |
# @required: | |
# | |
# - SSLStrip2 (https://github.com/LeonardoNve/sslstrip2) |
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
xaitax@w00t:~/usr/src$ for i in $(ls -d */); do egrep -iro '(fuck|shit|crap|bastard)' ${i%%/} | wc -l | xargs echo "Total matches in ${i%%/}:"; done | |
Total matches in linux-2.6.32.61: 398 | |
Total matches in linux-2.6.34.14: 454 | |
Total matches in linux-3.10.28: 392 | |
Total matches in linux-3.11.10: 404 | |
Total matches in linux-3.12.9: 404 | |
Total matches in linux-3.13.1: 418 | |
Total matches in linux-3.2.54: 388 | |
Total matches in linux-3.4.78: 381 |
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
cd /tmp | |
curl -O http://www.primepage.de/stuff/vmware/vmblock-9.0.2-5.0.2-3.10.patch | |
curl -O http://www.primepage.de/stuff/vmware/vmnet-9.0.2-5.0.2-3.10.patch | |
curl -O http://www.primepage.de/stuff/vmware/vmblock.3.11.patch | |
cd /usr/lib/vmware/modules/source | |
tar -xvf vmblock.tar | |
tar -xvf vmnet.tar | |
patch -p0 -i /tmp/vmblock-9.0.2-5.0.2-3.10.patch | |
patch -p0 -i /tmp/vmnet-9.0.2-5.0.2-3.10.patch | |
cd vmblock-only |
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
root@bt:/opt/metasploit/ruby/lib/ruby/1.9.1/i686-linux# diff -Nur rbconfig.rb_old rbconfig.rb | |
--- rbconfig.rb_old 2013-04-14 19:58:02.394668232 +0400 | |
+++ rbconfig.rb 2013-04-14 19:52:59.742676593 +0400 | |
@@ -53,7 +53,7 @@ | |
CONFIG["DLDLIBS"] = " -lc" | |
CONFIG["SOLIBS"] = "" | |
CONFIG["LIBRUBYARG_SHARED"] = "-Wl,-R -Wl,$(libdir) -L$(libdir) " | |
- CONFIG["LIBRUBYARG_STATIC"] = "-Wl,-R -Wl,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static" | |
+ CONFIG["LIBRUBYARG_STATIC"] = "-Wl,-R -Wl,$(libdir) -L$(libdir) " | |
CONFIG["LIBRUBYARG"] = "$(LIBRUBYARG_STATIC)" |
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
#!/bin/bash | |
# | |
# @desc: Check http://primepage.de/x360tool/ | |
# | |
# @name: x360tool(.sh) | |
# | |
# @author: Alexander Hagenah <ah@primepage.de> | |
# http://primepage.de | |
# | |
# @created: 09/29/2009 |
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
#!/bin/bash | |
cd /tmp | |
curl -O http://primepage.de/stuff/vmware/vmblock-9.0.2-5.0.2-3.10.patch | |
curl -O http://primepage.de/stuff/vmware/vmnet-9.0.2-5.0.2-3.10.patch | |
cd /usr/lib/vmware/modules/source | |
cp vmblock.tar vmblock_backup.tar | |
cp vmnet.tar vmnet_backup.tar | |
tar -xvf vmblock.tar | |
tar -xvf vmnet.tar | |
patch -p0 -i /tmp/vmblock-9.0.2-5.0.2-3.10.patch |
NewerOlder