Skip to content

Instantly share code, notes, and snippets.

Avatar
👾

Lautaro Colombo fr-ez

👾
  • $
View GitHub Profile
View find_subdomains.sh
#!/bin/bash
# let's dig the server
dig example.com
# from the DNS answer we are interested in the authority section
#;; AUTHORITY SECTION:
#example.com. 79275 IN NS a.iana-servers.net.
#example.com. 79275 IN NS b.iana-servers.net.
View git.md

## Sync with remote

Add the remote, call it "upstream":

git remote add upstream https://github.com/whoever/whatever.git

Fetch all the branches of that remote into remote-tracking branches, such as upstream/master:

git fetch upstream

View ascii-table-chars.txt
"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
"\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
"\x21\x22\x23\x24\x25\x26\x27\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
"\x31\x32\x33\x34\x35\x36\x37\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
"\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
"\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
"\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
"\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
"\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
"\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
@fr-ez
fr-ez / ask.sh
Last active Oct 22, 2018
Execute when virtual machine lost connection
View ask.sh
#!/bin/bash
ip link set dev eth0 up
dhclient -v eth0
# Change eth0 for the corresponding interface
View floating-byte.py
with open("x.py") as fp: # Change x.py
for i, line in enumerate(fp):
if "\xe2" in line:
print i, repr(line)
@fr-ez
fr-ez / .bashrc
Last active Oct 18, 2018
Tired of "echo <encodedbas64string> | base64 -d"? Add this to .bashrc. Make sure to restart Terminal afterwards
View .bashrc
decode() {
echo "$1" | base64 -d ; echo
}
# Then just type:
# decode <stringtodecode>
View drop-connection.sh
#!/bin/bash
# The default policies for all communication is to drop every packet
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP
# Previous to adjust the remote variable in config, we allow all packets coming
# from the vpn's ip address with UDP protocol
# Make sure to change (host) to match your vpn's ip address
@fr-ez
fr-ez / oscp_recon.sh
Created Sep 20, 2018 — forked from r00tpgp/oscp_recon.sh
Some script I found on the web for preparation of my OSCP exam, I modified it to include more functions for enumeration.
View oscp_recon.sh
#!/bin/bash
###################################################
# Recon Script
#
# Version: v2_08102016
# Created By: Seclyn
# Description: For initial recon of network/hosts.
# Mod by: r00t.pgp
#
###################################################
@fr-ez
fr-ez / web.config
Created Sep 11, 2018
Running asp code on web.config file
View web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers accessPolicy="Read, Script, Write">
<add name="web_config" path="*.config" verb="*" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="Unspecified" requireAccess="Write" preCondition="bitness64" />
</handlers>
<security>
<requestFiltering>
<fileExtensions>
<remove fileExtension=".config" />