All Projects → CoolerVoid → Codewarrior

CoolerVoid / Codewarrior

Licence: gpl-3.0
code-searching tool and static analysis - Beta

Programming Languages

c
50402 projects - #5 most used programming language

codewarrior

Just another manual code analysis tool and static analysis tool Alt text Codewarrior runs at HTTPd with TLS, uses the KISS principle(https://en.wikipedia.org/wiki/KISS_principle)

Video demo: https://youtu.be/tZkllJ9mieU

#Directories:

web/ = local of javascripts and html and css sources

src/ = C source code, this code talking with web socket

eggs/ = external modules to search codes using regex

conf/whitelist.conf = list of IPs that have access to the HTTPd server

bin/ = file to execute...

doc/ = at construction...

lib/ = External libraries

cert/ = loads your certificates for TLS here

You don't need to install, compile and run... runs at Linux, BSD and MacOS. need to install OpenSSL-dev or OpenSSL-devel package because need OpenSSL lib.

$ git clone https://github.com/CoolerVoid/codewarrior/; cd CodeWarrior
$ make

For example, if you need to create your cert...

$ cd cert; openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout certkey.key -out certificate.crt
$ cat certificate.crt certkey.key > certkey.pem 
$ cd ..

Execute don't do "cd bin; ./warrior", follow example:

$ bin/warrior 

Open browser at https://127.0.0.1:1345/index.html (dont write localhost use 127.0.0.1)

#Notes:

  • if screen stock, you refresh the browser with F5...
  • If return error, port already in use... close it with this following:
$ fuser -k -n tcp 1345
  • If you want to use the network, Whitelist to access server you can edit at "config/whitelist.conf".
  • Use chrome browser to run.
  • Use 127.0.0.1 addr don't use localhost name.

#Tested at path:
https://github.com/joostvanveen/php-security-pitfalls

#Tricks:

  • if you want to change cert "cert/certpem.pem" generate with OpenSSL certificate and key and concatenate both...
  • all HTML code and web sockets + javascript code you can view at path "web/".
  • if you change the default port, you need to edit port in web/ at web sockets connection.

#TODO:

  • Add external Automatons for each language case
  • Add load module with dlopen()
  • Add ReDOS validator at regex calls
  • Machine learning, so try use bag of Words with KNN

Author: CoolerVoid

Template by Pr0teus https://github.com/Pr0teus

contact:[email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].