Giter Site home page Giter Site logo

harite / source-code-analyzer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nanotechz9l/source-code-analyzer

0.0 3.0 0.0 346 KB

Automatically scan C/C++ source code for known vulnerabilities, and the use of dangerous functions.

C 7.58% Ruby 92.42%

source-code-analyzer's Introduction

Vulnxpose

Scans C/C++ source code files for known vulnerabilities including buffer overflows, race conditions, weak crypto, chroot jail configs ... & more).

Written by Rick Flores @nanotechz9l

Screenshot

Pre Reqs

You MUST install the rainbow gem for the pretty colorized output seen above, and the english gem for outputting line numbers when errors are found!

gem install rainbow english

Usage

./vulnxpose.rb vuln.c

Features

Screenshot

  • Scans C/C++ files for known vulnerabilities (buffer overflows, race conditions, weak crypto, chroot jail config... & more).
  • Provides a calculated score based on dangerous functions found in the source code.
  • Provides vulnerability information, and code recommendations.

Requirements

  • Tested on ruby version/s:
    • ruby 2.0.0p0 (2013-02-24 revision 39474)
    • ruby 1.9.3

History

  • 10/05/2013 - I WILL NO LONGER UPDATE THIS README file. VISIT THE ISSUES PAGE FOR ALL HISTORY/REVISION INFO!!

  •        - https://github.com/nanotechz9l/Source-code-analyzer/issues?page=1&state=open
    
  • 10/04/2013 - Minor update to user recommendations at the end of the script.

  • 10/04/2013 - Updated dfuncs to include all flawfinders 160 dangerous functions

  • 10/03/2013 - Added line number output.

  • 10/03/2013 - Added all 160 flawfinder dangerous functions.

  • 10/03/2013 - Added simple regex search to scan multiple functions vs one.

  • 10/02/2013 - Wrote the quick PoC.

BUG LIST:

  • I WILL NO LONGER UPDATE THIS BUG SECTION. TO STAY UP TO DATE ON BUGS/ENHANCEMENTS VISIT THE GITHUB ISSUE PAGE:

  • https://github.com/nanotechz9l/Source-code-analyzer/issues?state=open

  • SQUASHED - Improve the regex search (include all 160 flawfinder functions), and test

  • SQUASHED - Add vulnerability information, and recommendations.

  • SQUASHED - Improve the regex search findings output

  • SQUASHED - Add line numbers for function in question to vuln info, & recommendations!

  • SQUASHED - Update dfuncs to include the newly added c_rules 160 dangerous functions (makes scoring 100% accurate)!

Credits

  • Rick Flores (@nanotechz9l) -- 0xnanoquetz9l[--at--]gmail.com

License

This code is free software; you can redistribute it and/or modify it under the terms of the new BSD License.

source-code-analyzer's People

Contributors

nanotechz9l avatar

Watchers

harite avatar James Cloos avatar  avatar

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.