{"id":13531477,"url":"https://github.com/wireghoul/graudit","last_synced_at":"2025-05-14T10:08:22.379Z","repository":{"id":592160,"uuid":"226723","full_name":"wireghoul/graudit","owner":"wireghoul","description":"grep rough audit - source code auditing tool","archived":false,"fork":false,"pushed_at":"2024-12-20T04:07:21.000Z","size":418,"stargazers_count":1597,"open_issues_count":0,"forks_count":248,"subscribers_count":35,"default_branch":"master","last_synced_at":"2025-04-03T20:41:44.443Z","etag":null,"topics":["security","security-audit","security-tools","shell","source-code","vulnerability-detection"],"latest_commit_sha":null,"homepage":"http://www.justanotherhacker.com","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wireghoul.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"wireghoul"}},"created_at":"2009-06-14T05:59:17.000Z","updated_at":"2025-04-03T12:49:45.000Z","dependencies_parsed_at":"2024-11-20T07:08:16.787Z","dependency_job_id":"f0402383-58b6-4f1d-88b4-6ee977d0ec8e","html_url":"https://github.com/wireghoul/graudit","commit_stats":{"total_commits":582,"total_committers":20,"mean_commits":29.1,"dds":"0.20446735395189009","last_synced_commit":"f7962ebaa62b6c4c21cecc10447e23e07d03c533"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wireghoul%2Fgraudit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wireghoul%2Fgraudit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wireghoul%2Fgraudit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wireghoul%2Fgraudit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wireghoul","download_url":"https://codeload.github.com/wireghoul/graudit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248336237,"owners_count":21086749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["security","security-audit","security-tools","shell","source-code","vulnerability-detection"],"created_at":"2024-08-01T07:01:03.287Z","updated_at":"2025-04-11T03:33:46.367Z","avatar_url":"https://github.com/wireghoul.png","language":"Shell","funding_links":["https://github.com/sponsors/wireghoul"],"categories":["\u003ca id=\"9eee96404f868f372a6cbc6769ccb7f8\"\u003e\u003c/a\u003e新添加的","\u003ca id=\"9eee96404f868f372a6cbc6769ccb7f8\"\u003e\u003c/a\u003e工具","Shell (16)","Shell (473)","Shell"],"sub_categories":["\u003ca id=\"31185b925d5152c7469b963809ceb22d\"\u003e\u003c/a\u003e新添加的"],"readme":"graudit\n===============================================================================\ngraudit is a simple script and signature sets that allows you to find potential\nsecurity flaws in source code using the GNU utility grep. It's comparable to\nother static analysis applications like RATS, SWAAT and flaw-finder while\nkeeping the technical requirements to a minimum and being very flexible.\n\nInstallation\n===============================================================================\nInstallation can be done as a user or globally as root, simply run make with\nthe userinstall or install argument. It is however recommended to use graudit\ndirectly by cloning the git repository as it includes additional database rules\nnot included on the distribution files. This also enables you to get updates\nbetween releases. To do this run the following command:\n\n```\ngit clone https://github.com/wireghoul/graudit\n```\n\nYou can then add graudit to your path, using the appropriate values for\nyour preferred shell:\n```\necho 'PATH=\"$HOME/graudit:${PATH:+:${PATH}}\"; export PATH;' \u003e\u003e ~/.bashrc\n```\n\nIf graudit is not in your home directory you may wish to set the GRDIR\nenvironment variable to the signatures directory in your `.bashrc` file.\n```\nexport GRDIR=/path/to/graudit/signatures\n```\n\nUsage\n===============================================================================\ngraudit supports several options and tries to follow good shell practices. For\na list of the options you can run graudit -h or see below. The simplest way to\nuse graudit is;\n\n```\ngraudit [opts] /path/to/scan\n\nOPTIONS\n  -d \u003cdbname\u003e database to use or /path/to/file.db (uses default if not specified)\n  -A scan unwanted and difficult (ALL) files\n  -x exclude these files (comma separated list: -x *.js,*.sql)\n  -i case in-sensitive scan\n  -c \u003cnum\u003e number of lines of context to display before and after a match, default is 1\n\n  -B suppress banner\n  -L vim friendly lines\n  -b colour blind friendly template\n  -z suppress colors\n  -Z high contrast colors\n  \n  -l lists databases available\n  -v prints version number\n  -h prints this help screen\n```\n\nYou can set default commandline options via the GRARGS environment variable.\nThis may affect the use of graudit in scripts so it's only recommended to use\nthe B,L,b,z and Z options for this purpose.\n```\necho 'GRARGS=\"-b -L\"; export GRARGS' \u003e\u003e ~/.bashrc\n```\n\n\nDatabases\n===============================================================================\ngraudit uses extended regular expressions (POSIX) as it's signatures and comes\nwith several databases ready for use. You can extend the existing databases or\nmake your own if you require additional signatures.\n\nDatabases can be loaded from multiple locations, the order of precedence is as\nfollows:\n  1. Custom location specified via the GRDIR environment variable\n  2. /usr/share/graudit/\n  3. $HOME/.graudit/\n  4. A relative signatures/ directory from the graudit location\n  5. A relative misc/ directory from the graudit location\n  6. $HOME/graudit/signatures/\n  7. Any file that is specified with a full path, i.e: /home/user/my.db\n  8. Rules can be read from stdin by supplying - or /dev/stdin as the database\n\nA list of the database files in order of precedence is shown with the -l switch:\n`graudit -l`\n\nThe following databases are included:\n  - actionscript\n  - android\n  - asp\n  - c\n  - cobol\n  - default (used if -d argument is omitted)\n  - dotnet\n  - eiffel\n  - exec\n  - fruit\n  - go\n  - ios\n  - java\n  - js\n  - nim\n  - perl\n  - php\n  - python\n  - ruby\n  - scala\n  - secrets\n  - spsqli\n  - sql\n  - strings\n  - typescript\n  - xss\n\n\nTutorial\n===============================================================================\nA tutorial/introduction video can be found at: https://youtu.be/b8Xbzer1n94\n\n\nContributing\n===============================================================================\nIf you would like to contribute to graudit, please fork the repository at\nhttps://github.com/wireghoul/graudit and use that. In particular language rules,\nadditional scripts and documentation contributions are very welcome.\nIf you like graudit then please say thanks and share it around.\n\nIf you wish to get in contact with me, shoot me a line on github or twitter:\n@wireghoul\n\nCredits\n===============================================================================\n  * Wireghoul - http://www.justanotherhacker.com\n  * Various others - see Changelog\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwireghoul%2Fgraudit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwireghoul%2Fgraudit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwireghoul%2Fgraudit/lists"}