Skip to content

Instantly share code, notes, and snippets.

@tuantmb
Created August 23, 2022 07:15
Show Gist options
  • Save tuantmb/1a71ff90107430dfd84eb7671166d73b to your computer and use it in GitHub Desktop.
Save tuantmb/1a71ff90107430dfd84eb7671166d73b to your computer and use it in GitHub Desktop.
Automatically zip & unzip file with password 'infected'
➞  cat /usr/bin/zipm                                                                                                                                                                                                  system: ruby 3.0.4p208
#!/bin/bash
/usr/bin/zip -er9P infected "$@"

➞  cat /usr/bin/unzipm                                                                                                                                                                                                system: ruby 3.0.4p208
#!/bin/bash
/usr/bin/unzip -P infected "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment