Skip to content

Instantly share code, notes, and snippets.

View rxerium's full-sized avatar
💥
rise and grind

Rishi rxerium

💥
rise and grind
View GitHub Profile
@rxerium
rxerium / shodan-web-prodcut-export.sh
Created June 8, 2024 17:30
Shodan Script to export all products that are run on common web ports
import shodan
# Your Shodan API key
api_key = 'YOUR_SHODAN_API_KEY'
# Initialize the Shodan API
api = shodan.Shodan(api_key)
# Search queries for common web ports
queries = [
@rxerium
rxerium / yt-video-summariser.py
Created May 19, 2024 08:04
A python script that integrates with any given AI model to summarise Youtube videos
from youtube_transcript_api import YouTubeTranscriptApi
tc = YouTubeTranscriptApi.get_transcript("")
file = open("transcript.txt", "w", encoding="utf-8")
for i in tc:
file.write(i['text'] + "\n")
@rxerium
rxerium / command.md
Created March 9, 2024 08:57
Enumerate subdomains then detect services that are running on hosts provided by subfinder

echo rxerium.com | subfinder | httpx -nf | nuclei -tags tech,exposures,panel

@rxerium
rxerium / email-extractor.md
Last active March 2, 2024 17:40
Extract email addresses from a given website

echo domain.com | katana -fs rdn | nuclei -id email-extractor -stats -o extracted-emails.txt

Prerequisites: Nuclei and Katana to be installed

@rxerium
rxerium / nmap-port-scan.sh
Created February 13, 2024 19:59
Script to find online hosts on the network then check for ports / services running on online hosts
#!/bin/bash
echo "script starting..."
# installs nmap
apt update
apt install nmap -y
echo "nmap has been installed"
# finds hosts that are online on the network and outputs it to a online-hosts.txt file in the current dir
nmap -sn 192.168.1.0/24 -oG - | awk '/Up$/{print $2}' > online-hosts.txt
### Keybase proof
I hereby claim:
* I am rxerium on github.
* I am rxerium_ (https://keybase.io/rxerium_) on keybase.
* I have a public key ASBfbmUptZR5ebhxSohtZ5EUOQicr6TbQithDHITnKmIUgo
To claim this, I am signing this object:
@rxerium
rxerium / photo-organiser.py
Created April 23, 2023 11:29
Python Script to fetch photos/videos from a folder and its subfolders then organise it by Year/Month in a new folder
import os
from PIL import Image
from PIL.ExifTags import TAGS
import shutil
import hashlib
searchPath = "Y:\Media"
destinationPath = "Y:\OrganisedNEW"
@rxerium
rxerium / neofetch.yaml
Created April 16, 2023 10:41
Neofetch Config
# See this wiki page for more info:
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
print_info() {
info title
info underline
info "OS" distro
info "Host" model
info "Kernel" kernel
info "Uptime" uptime
@rxerium
rxerium / semaphore-compose.yaml
Created March 4, 2023 13:54
Ansible Semaphore Docker Compose
services:
semaphore:
ports:
- 3000:3000
image: semaphoreui/semaphore:latest
environment:
SEMAPHORE_DB_DIALECT: bolt
SEMAPHORE_ADMIN_PASSWORD: changeme
SEMAPHORE_ADMIN_NAME: admin
SEMAPHORE_ADMIN_EMAIL: admin@localhost
@rxerium
rxerium / online-hosts.sh
Created February 26, 2023 16:43
Ping Hosts on the network and output to a file
# ----------
#!/bin/bash
# Pings all devices on the .30 ranges and outputs all active hosts to the online_hosts.txt file
# Useful when creating hosts files with Ansible playbooks
# ----------
for i in {1..254}
do
ping -c 1 10.0.30.$i > /dev/null 2>&1
if [ $? -eq 0 ]; then