Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ramuta on github.
  • I am ramuta (https://keybase.io/ramuta) on keybase.
  • I have a public key ASDMN0J7lQ3LYIKNJDKWBEkvmKufS28UxltrVVxxC1pzKgo

To claim this, I am signing this object:

@ramuta
ramuta / sudo_brute_force.py
Last active April 8, 2024 05:12
A Python script to brute force the sudo password of a current user.
# Author: Matej Ramuta
# How to use this script:
# 1. You need to have a wordlist file, something like rockyou.txt
# 2. Make sure you have Python 3 installed. Try this with "python --version" command. Also check "python3 --version"
# 3. Run the script like this: python sudo_brute_force.py passwords.txt
import os
import sys
if len(sys.argv) == 1:
@ramuta
ramuta / reqscanner.py
Last active February 1, 2020 11:58
reqscanner.py
# Simple directory scanner written in Python (needs requests library)
# Author: Matej Ramuta
# Usage: python reqscanner.py domain.com wordlist.txt
# domain.com must not end with a slash!
import requests
import sys
domain = str(sys.argv[1]).replace("http://", "").replace("https://", "")
wordfile = sys.argv[2]
@ramuta
ramuta / iso-usb.md
Created February 16, 2020 15:58
Put a bootable ISO on a USB stick

Check the volume name of your USB stick:

diskutil list  # check for something like /dev/disk2

Then erase what you have on the stick currently:

diskutil eraseDisk FAT32 LINUX /dev/<DISK>

Unmount the disk: