Hysen Labs
Open-source project
NARKOZ/hacker-scripts avatar
NARKOZ

hacker-scripts

GitHub describes it as Based on a true story. The repository metadata lists JavaScript as its primary language. This article stays within the project description and details documented in the GitHub repository README.

49,798 stars6,658 forksJavaScriptLicense varies
01
DEEP OPEN-SOURCE ANALYSIS

NARKOZ/hacker-scripts: Hacker Scripts

GitHub describes it as Based on a true story. The repository metadata lists JavaScript as its primary language. This article stays within the project description and details documented in the GitHub repository README.

02
DEEP OPEN-SOURCE ANALYSIS

Repository scope

GitHub describes it as Based on a true story. The repository metadata lists JavaScript as its primary language. The README describes the project this way: xxx: OK, so, our build engineer has left for another company. The dude was literally living inside the terminal. You know, that type of a guy who loves Vim, creates diagrams in Dot and writes wiki-posts in Markdown... If something - anything - requires more than 90 seconds of his time, he writes a script to automate that.

03
DEEP OPEN-SOURCE ANALYSIS

Hacker Scripts

The README section "Hacker Scripts" states: xxx: smack-my-bitch-up.sh - sends a text message "late at work" to his wife (apparently). Automatically picks reasons from an array of strings, randomly. Runs inside a cron-job. The job fires if there are active SSH-sessions on the server after 9pm with his login.

04
DEEP OPEN-SOURCE ANALYSIS

Hacker Scripts

The README section "Hacker Scripts" states: xxx: kumar-asshole.sh - scans the inbox for emails from "Kumar" (a DBA at our clients). Looks for keywords like "help", "trouble", "sorry" etc. If keywords are found - the script SSHes into the clients server and rolls back the staging database to the latest backup. Then sends a reply "no worries mate, be careful next time".

05
DEEP OPEN-SOURCE ANALYSIS

Hacker Scripts

The README section "Hacker Scripts" states: xxx: hangover.sh - another cron-job that is set to specific dates. Sends automated emails like "not feeling well/gonna work from home" etc. Adds a random "reason" from another predefined array of strings. Fires if there are no interactive sessions on the server at 8:45am.

06
DEEP OPEN-SOURCE ANALYSIS

Editorial conclusion

The repository README is the source for this review. It does not replace a local installation or an independent test.

07
DEEP OPEN-SOURCE ANALYSIS

Official sources

08
Community notes

Community notes