Skip to content

Instantly share code, notes, and snippets.

View BigNerd95's full-sized avatar

Lorenzo Santina BigNerd95

View GitHub Profile
@BigNerd95
BigNerd95 / base64encode.sh
Created May 25, 2017 23:18
Base64 encode implementation entirely in bash
#/bin/bash
base64encode(){
local base64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
local res=""
for i in $(seq 0 3 $((${#1}-1)))
do
local n1=$(printf '%d' "'${1:i+0:1}")
local n2=$(printf '%d' "'${1:i+1:1}")
@BigNerd95
BigNerd95 / belkin_enable_telnetd.py
Created February 20, 2017 18:01
Belkin router exploits to bypass login and persistent remote command execution
#!/usr/bin/env python3
# Belkin Router Persistent Remote Command Execution (0day)
# Tested models: F7D4401, F7D4301
# Tested firmware: 1.00.46 (latest firmware)
# You bust be loggedin to run this exploit (you can use belkin_login_bypass.py exploit)
# Author BigNerd95
import sys, requests, re