Skip to content

jrcarreiro/offsec-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

offsec-scripts

Made with Ruby Made with Swift macOS Compatible MIT License Hacker Friendly


πŸ’» About this repository

Welcome to offsec-scripts, a personal collection of Ruby and Swift-powered scripts designed to streamline my daily workflow as an offensive security professional.

Here you'll find tools, automations, and utilities that help me solve real-world problems, speed up repetitive tasks, and avoid the rabbit holes of manual setup. These scripts range from plugin installers and system tweaks to mobile tooling and reverse engineering helpers β€” all crafted with care, clarity, and just the right amount of πŸ”₯.

This repo isn't meant to be a polished product β€” it's a living toolbox that grows as I break, fix, and automate things.


New Script Added: APKEnum (Ruby Version)

APKEnum.rb is a refactored and improved version of the original APKEnum tool, now written in Ruby to fit this repository’s language focus. This script automates APK reconnaissance and reverse engineering, extracting URLs, S3 buckets, public IPs, and Google Maps API keys from decompiled APK files.

Key Features:

  • Modular, object-oriented Ruby design
  • Robust error handling
  • Skips binary files to avoid encoding errors
  • Scope filtering support
  • JSON output for easy integration

Usage:

ruby Ruby/APKEnum.rb -p /path/to/app.apk [-s keyword1,keyword2]

What it does:

  • Decompiles APKs using apktool
  • Scans only text-based files in the decompiled output
  • Extracts reconnaissance data relevant to mobile security assessments

πŸ“‚ Structure

Scripts are now organized by language for clarity and maintainability:

β”œβ”€β”€ Ruby/
β”‚   β”œβ”€β”€ APKEnum.rb           # APK reconnaissance and enumeration tool (NEW)
β”‚   β”œβ”€β”€ Gemfile
β”‚   β”œβ”€β”€ Gemfile.lock
β”‚   β”œβ”€β”€ Rakefile
β”‚   β”œβ”€β”€ tasks/
β”‚   β”‚   └── radare2.rake
β”‚   └── install_r2lldb.rb
β”œβ”€β”€ Swift/
β”‚   └── ipa_dump.swift
└── README.md

πŸš€ Quick start

Ruby:

# Run the APKEnum script
ruby Ruby/APKEnum.rb -p /path/to/app.apk [-s keyword1,keyword2]

# Or run other Ruby scripts/tasks as before
bundle install
bundle exec rake radare2:r2lldb:install
ruby Ruby/install_r2lldb.rb

Swift:

chmod +x Swift/ipa_dump.swift
./Swift/ipa_dump.swift /path/to/App.ipa

Feel free to further adjust the README to match your voice or add more technical details as needed!

Sources [1] GitHub - jrcarreiro/offsec-scripts https://github.com/jrcarreiro/offsec-scripts


🀝 Contributions

This is a personal repo, but PRs, ideas, or improvements are always welcome β€” especially if you speak the language of elegant scripts and useful hacks πŸ˜„


🧨 License

MIT β€” because good tools should be free to use and share.


Crafted with focus, caffeine, and a little bit of controlled chaos β˜•βš”οΈ

"Automate the boring. Script the chaos. Hack the planet."

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published