Skip to content

Instantly share code, notes, and snippets.

View Anon-Exploiter's full-sized avatar
🎯
Making Memes & writing code :)

Syed Umar Arfeen Anon-Exploiter

🎯
Making Memes & writing code :)
View GitHub Profile
@Anon-Exploiter
Anon-Exploiter / Dockerfile
Last active June 9, 2020 09:59
Adding colors with PS1 in Docker container/image in linux distros
FROM kalilinux/kali-rolling:latest
RUN echo "PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '" >> /root/.bashrc
WORKDIR /root/
CMD ["bash"]
@Anon-Exploiter
Anon-Exploiter / cronjob.sh
Last active June 16, 2020 14:08
Taking regular backups of OSCP/OSWE data
#!/bin/bash
archiveName=OSWE-`date +%d_%m_%Y`.tar.gz
cd /home/$USER/
# Cronjob:
# 00 15 * * * /path/cronjob.sh | tee /tmp/cronLogs.txt
tar -czvf $archiveName OSWE/
mv $archiveName /path/ -v
@Anon-Exploiter
Anon-Exploiter / .bashrc
Last active October 23, 2020 09:34
.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@Anon-Exploiter
Anon-Exploiter / youtube-playlist-reverse.py
Last active December 22, 2020 04:57
Generating commands for youtube playlist downloading in reverse with index in file name using youtube-dl
import os
playlist = "https://www.youtube.com/user/..."
command = f"youtube-dl -j --flat-playlist --playlist-reverse {playlist} | jq -r '.id' | sed 's_^_https://youtu.be/_'"
output = os.popen(command).read()
print(output)
ytUrls = []
@Anon-Exploiter
Anon-Exploiter / btc-pricing.py
Created March 17, 2021 17:51
Get BTC (USD) price/minute in discord server
# Get USD price of BTC (changing) per minute in your discord server!
# Just replace the webhook_url variable and create a cron as you see fit.
#!/usr/bin/python3
import requests
import json
# BTCPRICE=`curl -s https://api.coindesk.com/v1/bpi/currentprice/USD.json | jp bpi.USD.rate | cut -d '"' -f2`
# JSON="{\"content\": \"Current price of BTC is: **$BTCPRICE** USD\"}"
@Anon-Exploiter
Anon-Exploiter / decode.py
Created April 10, 2021 14:33
Just decode it! :|
#!/usr/bin/python3
from codecs import encode
import base64
import argparse
import re
import pycipher
# pycipher import Atbash
@Anon-Exploiter
Anon-Exploiter / gob.sh
Created November 8, 2020 10:46
Gobuster -- variations with different lists
gobuster dir -w /usr/share/wordlists/dirb/common.txt -u http://10.10.10.37/ -k -l -e -b 404 -t 80
gobuster dir -w /usr/share/wordlists/dirb/big.txt -u http://10.10.10.37/ -k -l -e -b 404 -t 80
gobuster dir -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -u http://10.10.10.37/ -k -l -e -b 404 -t 80
gobuster dir -w /usr/share/wordlists/dirb/big.txt -u http://10.10.10.37/ -x php,jsp,rb,py,js,asp,aspx,zip,sql,tar,txt,key,doc,docx,html,jar,groovy,back,xml,ini,inc,config,json,yml,conf,cgi -k -l -e -b 404 -t 80
gobuster dir -w /usr/share/wordlists/dirb/common.txt -u http://54.164.63.113/ -x php,jsp,rb,py,js,asp,aspx,zip,sql,tar,txt,key,doc,docx,html,jar,groovy,back,xml,ini,inc,config,json,yml,conf,cgi -k -l -e -b 404 -t 80
@Anon-Exploiter
Anon-Exploiter / jwtBuster.py
Last active October 20, 2021 11:05
For pentesting the JWT token, fetching it's body, type, and signing it with a random string or pem file (based on type being used). Also, returns None type JWT.
from sys import argv
import json
import jwt
JWTSECRET = "jwtSecretKeyEncryption"
PRIVATEKEY = """-----BEGIN RSA PRIVATE KEY-----
MIIEogIBAAKCAQEAnzyis1ZjfNB0bBgKFMSvvkTtwlvBsaJq7S5wA+kzeVOVpVWw
kWdVha4s38XM/pa/yr47av7+z3VTmvDRyAHcaT92whREFpLv9cj5lTeJSibyr/Mr
@Anon-Exploiter
Anon-Exploiter / getSTSToken.py
Created January 7, 2022 07:08
Get STS token returned with export AWS_={key}
#!/usr/bin/python3
from sys import argv
from os import popen
import json
import argparse
@Anon-Exploiter
Anon-Exploiter / squid.conf
Created April 27, 2022 23:58
Squid configuration file (for setting up proxy server)
# apt-get install squid apache2-utils
# htpasswd -c /etc/squid/.htpasswd user_name
# systemctl restart squid
acl CONNECT method CONNECT
# line 989: add follows for Basic auth
auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/.htpasswd
auth_param basic children 5
auth_param basic realm Squid Basic Authentication