wireghoul/graudit
wireghoul/graudit has 1,691 GitHub stars and 256 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-11 11:59 UTC. Last push 2026-10-13.
Comment ces chiffres sont mesurés
grep rough audit - source code auditing tool
Progression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- Mise à jour retardée
- in 1 month
- Mise à jour retardée
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
Originalgraudit
graudit is a simple script and signature sets that allows you to find potential security flaws in source code using the GNU utility grep. It's comparable to other static analysis applications like RATS, SWAAT and flaw-finder while keeping the technical requirements to a minimum and being very flexible.
Installation
Installation can be done as a user or globally as root, simply run make with the userinstall or install argument. It is however recommended to use graudit directly by cloning the git repository as it includes additional database rules not included on the distribution files. This also enables you to get updates between releases. To do this run the following command:
git clone https://github.com/wireghoul/graudit
You can then add graudit to your path, using the appropriate values for your preferred shell:
echo 'PATH="$HOME/graudit:${PATH:+:${PATH}}"; export PATH;' >> ~/.bashrc
If graudit is not in your home directory you may wish to set the GRDIR
environment variable to the signatures directory in your .bashrc file.
export GRDIR=/path/to/graudit/signatures
Usage
graudit supports several options and tries to follow good shell practices. For a list of the options you can run graudit -h or see below. The simplest way to use graudit is;
graudit [opts] /path/to/scan
OPTIONS
-d <dbname> database to use or /path/to/file.db (uses default if not specified)
-A scan unwanted and difficult (ALL) files
-x exclude these files (comma separated list: -x *.js,*.sql)
-i case in-sensitive scan
-c <num> number of lines of context to display before and after a match, default is 1
-B suppress banner
-L vim friendly lines
-b colour blind friendly template
-z suppress colors
-Z high contrast colors
-l lists databases available
-v prints version number
-h prints this help screen
You can set default commandline options via the GRARGS environment variable. This may affect the use of graudit in scripts so it's only recommended to use the B,L,b,z and Z options for this purpose.
echo 'GRARGS="-b -L"; export GRARGS' >> ~/.bashrc
Databases
graudit uses extended regular expressions (POSIX) as it's signatures and comes with several databases ready for use. You can extend the existing databases or make your own if you require additional signatures.
Databases can be loaded from multiple locations, the order of precedence is as follows:
- Custom location specified via the GRDIR environment variable
- /usr/share/graudit/
- $HOME/.graudit/
- A relative signatures/ directory from the graudit location
- A relative misc/ directory from the graudit location
- $HOME/graudit/signatures/
- Any file that is specified with a full path, i.e: /home/user/my.db
- Rules can be read from stdin by supplying - or /dev/stdin as the database
A list of the database files in order of precedence is shown with the -l switch:
graudit -l
The following databases are included:
- actionscript
- android
- asp
- c
- cobol
- default (used if -d argument is omitted)
- dotnet
- eiffel
- exec
- fruit
- go
- ios
- java
- js
- nim
- perl
- php
- python
- ruby
- scala
- secrets
- spsqli
- sql
- strings
- typescript
- xss
Tutorial
A tutorial/introduction video can be found at: https://youtu.be/b8Xbzer1n94
Contributing
If you would like to contribute to graudit, please fork the repository at https://github.com/wireghoul/graudit and use that. In particular language rules, additional scripts and documentation contributions are very welcome. If you like graudit then please say thanks and share it around.
If you wish to get in contact with me, shoot me a line on github @wireghoul.
Credits
- Wireghoul - http://www.justanotherhacker.com
- Various others - see Changelog
Explorer des projets similaires
trimstray/the-book-of-secret-knowledge
Une collection de listes inspirantes, de manuels, d’antisèches, de blogs, d’astuces, de commandes en une ligne, d’outils CLI et web, et plus encore.
257,846 étoilesHack-with-Github/Awesome-Hacking
Une collection de diverses listes awesome pour les hackers, les pentesters et les chercheurs en sécurité.
125,254 étoilesswisskyrepo/PayloadsAllTheThings
Une liste de payloads et de méthodes de contournement utiles pour la sécurité des applications web et le pentest/CTF.
82,583 étoilescaddyserver/caddy
Serveur web HTTP/1-2-3 rapide, extensible et multiplateforme, avec HTTPS automatique
78,959 étoiles