Skip to content

Instantly share code, notes, and snippets.

@0xAungkon
Last active December 24, 2024 06:31
Show Gist options
  • Select an option

  • Save 0xAungkon/08d4277e7576683d45f6361f6c51eb3b to your computer and use it in GitHub Desktop.

Select an option

Save 0xAungkon/08d4277e7576683d45f6361f6c51eb3b to your computer and use it in GitHub Desktop.
Linux Bash Abstract Wrapper
#!/bin/bash
# example: nmapw (nmap wrapper) , a wrapper that does wrap another bash file over actual program
echo 'Nmap Starting......'
nmap "$@"
echo 'Bye! See You Next Time......'
# wnmap localhost -p- => nmap localhost -p-
# wnmap -A localhost -p 80,8001 => nmap -A localhost -p 80,8001
# How Does It works? "$@" pass all the parameter to the program we target
@0xAungkon
Copy link
Copy Markdown
Author

image

Visualized Screenshot

@0xAungkon
Copy link
Copy Markdown
Author

0xAungkon commented Dec 24, 2024

Install The wnmap Script For Testing:

Installation Guide (Paste The Command To Terminal , One by one):

  1. sudo apt install nmap
  2. sudo su
  3. wget -O /bin/wnmap https://gist.githubusercontent.com/0xAungkon/08d4277e7576683d45f6361f6c51eb3b/raw/db4a295a6732d2ca64c7c5bee8223fce018bb569/wnmap.sh
  4. chmod +x /bin/wnmap
  5. wnmap localhost

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment