Skip to content

jrcarreiro/hacking_with

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“š Hacking With...

This repository contains examples, tools, and practical exercises inspired by the book Hacking with Go, reimplemented in Ruby and Swift, with a focus on offensive security.

But this is not just a code dump. This is a real learning journey β€” and you’re invited to follow along.


✍️ Why This Project Exists

This project is part of my personal learning path in offensive security. I’ve been inspired by Hacking with Go, and instead of just reading or copying code, I’m rebuilding everything from scratch in Ruby and Swift.

βœ… I’m using ChatGPT as a mentor β€” not to generate the answers, but to guide me through concepts and help me structure the project while I learn each piece for real.

Everything here is:

  • Written with understanding
  • Explained in simple, beginner-friendly language
  • Organized as if it were ready for production

🧱 Project Structure

The project is split into three language tracks, following the same structure and topics in each:

hacking_with/
β”œβ”€β”€ ruby/       # Ruby scripts and modules (with bin/ and lib/)
β”œβ”€β”€ swift/      # Swift project using Swift Package Manager (SPM)
└── swiftc/     # Direct Swift scripts compiled with swiftc (no package)

Each chapter is written independently in all three versions, and includes modular code, clear examples, and CLI-ready scripts.


πŸ”§ Project Roadmap: What This Series Covers

This series is about rebuilding the concepts from Hacking with Go in both Ruby and Swift, with a focus on clean scripting, offensive tooling, and explaining everything with clarity.

🧭 Here’s what the series covers:

  1. Development Environment – setting up Ruby and Swift for CLI scripting
  2. Language Fundamentals – variables, types, functions, control structures
  3. Useful Packages – parsing, automation, colors, output
  4. Networking – TCP, UDP, proxies, SSH, scanning
  5. File Parsing – analyzing file formats for recon and analysis
  6. Fuzzing – writing simple fuzzers to test and break things

Each chapter includes:

  • βœ… Idiomatic code in both Ruby and Swift
  • βœ… Clean, versioned commits
  • βœ… CLI-focused scripts (no frameworks)
  • βœ… Real-world analogies that even non-programmers can understand

πŸ”§ Requirements

  • Ruby 3.3.5 (via rbenv or rvm)
  • Swift 6.1 (via Xcode or official binaries)
  • macOS or Linux with Swift support

πŸš€ Learning in Public

This project is helping me learn by building. I’m organizing everything as if I were teaching it to someone else β€” because that’s how I best learn myself.

Every file, method, and script is written with this principle:

β€œI’m not trying to impress. I’m trying to understand β€” and share that understanding clearly.”

About

πŸ” Offensive security toolkit inspired by Hacking with Go, reimagined in Ruby and Swift.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published