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 | |
# | |
# CISCO ASA path traversal and Firepower Threat Defense - CVE-2020-3452 | |
# Payload : @aboul3la | |
# | |
# Usage : | |
# $ echo "host1 host2 host3" | ./scanner | |
# $ cat myservers | ./scanner | |
# | |
servers="$(cat)" |
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 | |
# | |
# BIG-IPF5(CVE-2020-5902) | |
# | |
# Usage : | |
# $ echo "host1 host2 host3" | ./scanner | |
# $ cat myservers | ./scanner | |
# | |
servers="$(cat)" |
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
http_port 80 | |
http_access allow all |
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
input { | |
file { | |
path => ["/var/log/nginx/access.log", "/var/log/nginx/error.log"] | |
type => "nginx" | |
} | |
} | |
filter { | |
if [path] =~ "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
@ IN SOA takengo.com. host.takengo.com. ( | |
2010081401; | |
28800; | |
604800; | |
604800; | |
86400 ); | |
IN NS ns1.takengo.com. | |
4 IN PTR takengo.com. |
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
; BIND data file for takengo.com | |
; | |
$TTL 14400 | |
@ IN SOA ns1.takengo.com. host.takengo.com. ( | |
201006601 ; Serial | |
7200 ; Refresh | |
120 ; Retry | |
2419200 ; Expire | |
604800) ; Default TTL | |
; |
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 | |
domain=$1 | |
mkdir -p /usr/share/ngnix/$domain | |
sudo echo "it works" > /usr/share/ngnix/$domain/index.html | |
sudo echo "127.0.0.1 $domain" >> /etc/hosts | |
cp /etc/nginx/sites-available/template /etc/nginx/sites-available/$domain | |
sed -i -e 's/server_name _/server_name '$domain'/g' /etc/nginx/sites-available/$domain |
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; | |
listen [::]:80; | |
root /usr/share/ngnix/domain; | |
index index.html index.htm index.nginx-debian.html; | |
server_name _; | |
} |
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
# change keyboard to fr | |
sudo dpkg-reconfigure keyboard-configuration | |
# upgrade system | |
sudo apt-get update | |
sudo apt full-upgrade -y | |
# ifconfig tools | |
sudo apt install net-tools |
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
findomain-linux -o -t $TARGET -r | anew $TARGET.txt |