- Kunai instructions for Ubuntu (does not work with Kali):
- Prepare for install
sudo apt updatesudo apt full-upgradesudo apt install libstdc++-12-devsudo apt install g++
- Download KUNAI-static-analyzer
- Enter
kunai-libdirectory - Run the following commands to install Kunai binary into your local libraries:
cmake -B build -S .
- Prepare for install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <opml version="1.0"> | |
| <head> | |
| <title>feedolin</title> | |
| </head> | |
| <body> | |
| <outline text="News" title="News"> | |
| <outline type="rss" text="AP News" title="AP News" xmlUrl="https://feedx.net/rss/ap.xml" htmlUrl=""/> | |
| <outline type="rss" text="BBC World News" title="BBC World News" xmlUrl="https://feeds.bbci.co.uk/news/world/rss.xml" htmlUrl=""/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Sources: | |
| // https://stackoverflow.com/questions/64042652/is-printf-unsafe-to-use-in-c | |
| // https://cs155.stanford.edu/papers/formatstring-1.2.pdf | |
| #include <stdio.h> | |
| char name[100]; | |
| char getPass() { | |
| int value = 'G'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| , Takes first letter input | |
| > , Takes possible second letter input | |
| [ Loops input until there are no more letters | |
| . > , Reads letter moves on and takes next input | |
| ] | |
| < | |
| [ Loops back to beginning | |
| < | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <string> | |
| using namespace std; | |
| int main() { | |
| string inputMonth; | |
| int inputDay; | |
| cin >> inputMonth >> inputDay; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Given an array of integers, find all unique pairs of two numbers within the array that add up to the target number. | |
| use std::collections::HashMap; | |
| fn main() { | |
| println!("{:?}", find_pairs(vec![2, 7, 11, 15], 9)); | |
| println!("{:?}", find_pairs(vec![3, 4, 5, 6, 7], 10)); | |
| println!("{:?}", find_pairs(vec![-1, 0, 1, 2, -1, -4], 0)); | |
| println!("{:?}", find_pairs(vec![1, 1, 1, 1], 2)); | |
| println!("{:?}", find_pairs(vec![0, 0], 0)); |