Giter Club home page Giter Club logo

naudit's Introduction

Overview:

Source code audit tool based on ncurses library. Using naudit you can search for lines of text matching specific patterns and tag/review those matching lines.

Dependencies:

 - libcdk5 (ncurses widget library) (sudo apt-get install libcdk5 libcdk5-dev)

Install:

 $ ./bootstrap
 $ ./configure
 $ make
 $ sudo make install

Also you have shell completion scripts available for bash or zsh in ./shell folder.

Usage:
	./naudit <options> [path...]

		-h, --help                   	Print this help and exit
		-v, --version                	Print naudit version and exit
		-b, --batch                  	Batch mode
		-c, --config <folder>        	Use <folder> as config folder
		-e, --ext <list>             	List of file extensions to search for
		-E, --ext-file <file>        	Use <file> to get a list of extensions to search for, one extension per line
		-i, --ignore-ext <list>      	List of file extensions to ignore
		-I, --ignore-ext-file <file> 	Use <file> to get a list of file extensions to ignore, one extension per line
		-p, --path <list>            	List of path to search for files to audit
		-P, --path-file <file>       	Use <file> to get a list of path to search for files to audit, one path per line
		-r, --regex [label:]<regex>  	Use <regex> as a pattern to match lines of code and store them in a file called label in the current session
		-R, --regex-file <file>      	Use <file> to get a list of regex to match lines of code to audit, one [label:]<regex> per line. See --regex
		-s, --session <session>      	Session name to work on. Creates a new session if required
		-t, --tag <list>             	List of tags for the current session
		-T, --tag-file <file>        	Use <file> to get a list of tags for the current session, one tag per line

Examples:

Let's say you want to audit all calls to strcpy and memcpy in the Linux kernel, run naudit this way:

 $ naudit -s mySessionName -e c,h -r strcpy -r memcpy /usr/src/linux

Now you can navigate through lines of code using arrow keys, inspect a line with your editor by pressing enter, cycle through the different result sets with TAB key, choose the apropriate tag for a line using space key. Press q to quit naudit.

Then if you need to resume auditing at a later time, you can run naudit like this:

 $ naudit -s mySessionName

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.