Go back to the main page.
  1. C Library
  2. Fox and Hound CTF
  3. JavaScript Library
  4. Open Computer Forensics
  5. Open Capture The Flag
  6. Password Generator
  7. Question and Answers Library
  8. RSA Library
  9. PHP RNG Library
  10. Misc PHP functions extension
  11. SQL code
  12. Browser Based HTML5 Game
  13. My CTF Solver scripts
  14. Crypto Challenge Creator/Solver
  15. Misc Bash Scripts

All code counts exclude external libraries.

c_library Direct link to it
--------------------------------------------------------------------------------
Language                      files          blank        comment           code
--------------------------------------------------------------------------------
C/C++ Header                      5             70            170            411
Bourne Shell                      3          2,040          1,733         10,620
m4                                2            929            104          7,928
Bourne Again Shell                3            111            168          1,093
make                              4            130             43          1,012
C                                14             86            650            613
XML                               4              0              0            216
--------------------------------------------------------------------------------
SUM:                             69           3,366         7,732         21,982
--------------------------------------------------------------------------------
Fox and Hound CTF (Private) Repo This repo contains 19 self-building and self-testing labs. Each time it's built all of instruction for each level are changed and updated with the current requirements. Also the scripts let you change all of teh passwords for each level. Each level gives you a password to the next level and each level builds upon the previous ones. It started as a clone of Bandit from overthewire but diverged very quickly into something that has a deterministic build system for all flags. Further the total period for a repeat in flags is 35 builds before any password repeats again. Each password is a sha1 hash of a word and the level id as a salt thus making it harder to bruteforce their answer. Currently it's being implemented at the virginia cyber range. It's currently also at Mountain Empire Community College
Fox CTF Welcome Image Show/Hide
Code Counts
--------------------------------------------------------------------------------
Language                      files          blank        comment           code
--------------------------------------------------------------------------------
Bourne Again Shell               47            340          1,370          2,982
C                                12             53            240            819
Bourne Shell                     24             87            403            607
HTML                              1             10              0            113
C/C++ Header                      1              2             31             12
awk                               1              0              4              1
--------------------------------------------------------------------------------
SUM:                             86            492          2,048          4,534
--------------------------------------------------------------------------------
Javascript Library Repo
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
JavaScript                       9            154            223          1,384
-------------------------------------------------------------------------------
SUM:                             9            154            223          1,384
-------------------------------------------------------------------------------
Open Computer Forensics (Private) Repo
OpenCF is a collection of computer forensics labs that can be freely utilized for learning purposes. There are two labs. They are ranked based on dificulty. Both labs require students to analyze evidence, prove chains of custody, attestation of digital evidence. Evidence gathering, and looking for hidden files embedded in other ones.
Case 0: This lab is easier and requires all of the basic utilities. It's called "The Case of the Bitten Skinner."
Case 1:" The Case of the Ruffled Feathers"
This case also requires the person to have wireshark as there is a file to be recovered from within a pcacp file captured from an ftp session.
Both cases require the following skills.
  1. Cracking Password Protected Archives
  2. Reading eMail headers to find out network topology
  3. Verifying Digital Signatures and know how Public-Key Infrastructure works
  4. Getting Attachments from eMails and then analyzing them.
  5. Getting hidden information from images and how to properly use steganography.
  6. Undelting files from a partition to recover instructions
  7. Making a report on their findings to hand off to a DA or similar person
  8. Proper report generation and understanding of protocols and procedures
  9. Incident remediation to prevent a similar attack from happening again
  10. Knowing common hacking tools and their uses
  11. Unix/Linux commands, utilities, and file evidence
  12. Reading captured packets and extracting data from within it
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
HTML                             3              8              0            316
Bourne Shell                     2              8              0             16
-------------------------------------------------------------------------------
SUM:                             5             16              0            332
-------------------------------------------------------------------------------
Open Capture The Flag(My CTF Chal builders) (Private) Repo
--------------------------------------------------------------------------------
Language                      files          blank        comment           code
--------------------------------------------------------------------------------
Bourne Again Shell                2             31            158            382
JavaScript                        4             15            108            190
Bourne Shell                      6             14             47            166
C                                 5             15             73            137
C++                               1             13             89             63
PHP                               2              8             10             40
--------------------------------------------------------------------------------
SUM:                             20             96            485            978
--------------------------------------------------------------------------------
Password Generator Repo
Password Generator using uberhash for strong passwords
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
JavaScript                      33          1,460          2,239         11,367
HTML                            13             65             81            820
PHP                              5             28            100            589
Bourne Shell                     3             96             66            352
CSS                              1              4              8            149
-------------------------------------------------------------------------------
SUM:                            55          1,653          2,494         13,277
-------------------------------------------------------------------------------
Question and Answer Library(WIP on hiatus right now) Repo
This repo will eventually contain a full platform for question and answering system for students to take quizzes etc. Except I won't be reliant on Quizlet and it'll all be open source and let me put my hand-made questions into it.
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
JavaScript                      13            765            999          4,903
HTML                             6             14             34            360
CSS                              3             11             47            174
PHP                              6              5             17             89
Markdown                         1              6              0             10
-------------------------------------------------------------------------------
SUM:                            29            801          1,097          5,536
-------------------------------------------------------------------------------
RSA Library implementing custom attack creators etc.
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Python                          10            190            165            732
-------------------------------------------------------------------------------
SUM:                            10            190            165            732
-------------------------------------------------------------------------------
mwc4096 based RNG for PHP as an extension.
--------------------------------------------------------------------------------
Language                      files          blank        comment           code
--------------------------------------------------------------------------------
m4                                8           2,166           1,407       19,186
Bourne Shell                      5           1,310           2,331       13,371
Bourne Again Shell                2           13,45           1,995        8,371
make                              1             16              0            155
C                                 1             26             88            123
awk                               2             15             22             70
C/C++ Header                      2             34             68             48
--------------------------------------------------------------------------------
SUM:                             21           4,912           5,911       41,324
--------------------------------------------------------------------------------
Various PHP functions rewritten into C
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
C                                2             27             95            135
m4                               1             11             13             39
C/C++ Header                     1             14             43             26
PHP                              1              1              0             20
-------------------------------------------------------------------------------
SUM:                             5             53            151            220
-------------------------------------------------------------------------------
My SQL files.
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
SQL                              7          1,545          2,359          5,945
-------------------------------------------------------------------------------
SUM:                             7          1,545          2,359          5,945
-------------------------------------------------------------------------------
Custom Browser Based game utilizing PHP and HTML5.
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
JavaScript                      63          5,280          5,662         37,495
PHP                             58            210            619          8,383
HTML                            11             67              9          3,526
CSS                              5             57             56          2,963
C                                1             62             15            320
JSON                             1              2              0             63
XML                              3              1              0             44
Bourne Shell                     1              0              0             17
-------------------------------------------------------------------------------
SUM:                           143          5,679          6,361         52,811
-------------------------------------------------------------------------------
CTF Solver scripts.
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Bourne Shell                     6              5              2            154
C                                2              4              3             90
Python                           1              3              4             32
-------------------------------------------------------------------------------
SUM:                             9             12              9            276
-------------------------------------------------------------------------------
Crypto Cipher Challenge Creator This repo contains the following flag creators/solvers. It will have Wiener's Attack, and also Hill and other cipher flag creator/solvers. RSA
  1. RSA Encryption/Decryption
  2. RSA Signing
  3. RSA Key Generation Public & Private
  4. I2OS Function(RSA Integer to Character String)
  5. OS2I Function(RSA Character String to Integer
  6. Naive ASCII Encoder/Decoder(code points combined one after another)
  7. Fermat's Factorization Method
  8. RSA Near Prime attack/Fermat Factorzation creator
  9. eth root attack creator
  10. eth root attack solver
  11. RSA Blinding Attack Solver
  12. RSA Blinding Attack Generator
  13. Common Modulus Attack Solver(any size of e)
  14. Common Modulus Attack Creator(e of any size)
  15. Hastad Braodcast Attack via Chinese Remainder Theorem Solver
  16. Hastad Broadcast Attack via Chinese Remainder Theorem Generator
Linear Ciphers
  1. Hill Cipher Encryption/Decryption
  2. Matrix Multiplication
  3. Determinant Calculator
  4. Modular Multiplicative Inverse of Matrix
Math
  1. Greatest Common Divsor via Extended Euclidean Algorithm
  2. Modular Multiplicative Inverse(including negative values for a
  3. Least Common multiple
  4. Carmichael's Totient Calculator
  5. Euler's method for Calculating Modular Multiplicative Inverse
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Python                          13            199            186            839
-------------------------------------------------------------------------------
SUM:                            13            199            186            839
-------------------------------------------------------------------------------
My bash scripts that I currently utilize. Repo
--------------------------------------------------------------------------------
Language                      files          blank        comment           code
--------------------------------------------------------------------------------
Bourne Again Shell               30             52            156            659
Bourne Shell                     29             47             99            486
Python                            2             79             29            322
PHP                               3             46             18            274
--------------------------------------------------------------------------------
SUM:                             64            224            302          1,741
--------------------------------------------------------------------------------