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
from http.server import HTTPServer, SimpleHTTPRequestHandler | |
import ssl, os | |
import json, logging | |
class HTTPSHandler(SimpleHTTPRequestHandler): | |
def _set_headers(self): | |
self.send_response(200) | |
self.send_header('Content-type', 'application/json') |
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
# reload config file | |
bind r source-file ~/.tmux.conf \; display "Config Reloaded!" | |
# tmux display things in 256 colors | |
set -g default-terminal "screen-256color" | |
set -g status-utf8 on | |
set-option -g allow-rename off | |
# copy & paste shortcuts | |
set-window-option -g mode-keys vi | |
set -g mouse on |
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/sh | |
### BEGIN INIT INFO | |
# Provides: fuelwebsocket | |
# Required-Start: $local_fs $network $named $time $syslog | |
# Required-Stop: $local_fs $network $named $time $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Description: Script like as zver | |
### END INIT INFO |
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
alert("hi"); |
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
awk -vDate=`date --date="$(date +%b) $(date +%d) $(date +%Y) 8:00" +[%d/%b/%Y:%H:%M:%S` -vDate2=`date --date="$(date +%b) $(date +%d) $(date +%Y) 10:00" +[%d/%b/%Y:%H:%M:%S` '$4 > Date && $4 < Date2 && ($9 ~ /502/) {printf "Time: %s, Response: %d, Size: %d, Request: %s\n",$4,$9,$10,$7}' access.log |
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
mkdir -p /storage/mysql/datadir | |
docker pull mysql/mysql-server | |
docker run --name mysql-master-container -p 6603:3306 -v /storage/mysql/datadir:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=toor -d mysql/mysql-server |
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
docker pull kalilinux/kali-linux-docker | |
# Available metapackages for Kali Linux (apt-get update && apt-cache search kali-linux) | |
# To see the list of tools included in a metapackage (apt-cache show kali-linux-web |grep Depends) | |
xhost +local:`docker inspect --format='{{ .Config.Hostname }}' $containerId` | |
docker run -ti --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v /home/bauta/Downloads:/bt kalilinux maltego |
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 | |
echo "@b4ut4 | Writing firewall rules..." | |
IPT="/sbin/iptables" | |
echo "0" > /proc/sys/net/ipv4/ip_forward | |
echo "1" > /proc/sys/net/ipv4/tcp_syncookies |