An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
Includes HTTP-Header information in the output
### Keybase proof | |
I hereby claim: | |
* I am evilsomething on github. | |
* I am cyberdog (https://keybase.io/cyberdog) on keybase. | |
* I have a public key ASAtZtx8TAWW8_rg9OhQTBkNWRygmuhBon84QT7xH-kJxgo | |
To claim this, I am signing this object: |
#define INITGUID // Include this #define to use SystemTraceControlGuid in Evntrace.h. | |
#include <windows.h> | |
#include <stdio.h> | |
#include <conio.h> | |
#include <strsafe.h> | |
#include <wmistr.h> | |
#include <evntrace.h> | |
#define LOGFILE_PATH L"<FULLPATHTOTHELOGFILE.etl>" |
#define INITGUID // Include this #define to use SystemTraceControlGuid in Evntrace.h. | |
#include <windows.h> | |
#include <stdio.h> | |
#include <conio.h> | |
#include <strsafe.h> | |
#include <wmistr.h> | |
#include <evntrace.h> | |
#define LOGFILE_PATH L"<FULLPATHTOTHELOGFILE.etl>" |
An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
Includes HTTP-Header information in the output
External <br> | |
* [[https://github.com/lgandx/Responder.git | |
* [[https://github.com/quickbreach/SMBetray.git[SMB Betrayu] | |
* [[https://github.com/yamakira/censys-enumeration|censys enumeration via certificates]] | |
* [[https://github.com/FortyNorthSecurity/EyeWitness.git|Eyewitness]] | |
* [[https://github.com/michenriksen/gitrob.git|gitrob git]] | |
* [[https://github.com/aboul3la/Sublist3r.git|Sublistr]] | |
* https://github.com/OJ/gobuster.git - directory brute forcing | |
#!/bin/bash | |
# log.sh | |
# do the following - /usr/bin/script ~/Desktop/Terminal.log | |
#* Formatted date & time string. | |
FORMATTED_DATE=`/bin/date "+%Y-%m-%d%H%M%S"` | |
#* Archive the previous file | |
/bin/cp -f ~/Desktop/Terminal.log{,.$FORMATTED_DATE.txt} |
To list open files (process id’s and ports, actually): | |
sudo lsof -i -P | |
To avoid text wrapping, pull the right edge to expand the screen width. | |
The right-most column heading "Name" shows the port (either TCP or UDP). | |
To filter a particular port number: |
alias qfind="find . -name " # qfind: Quickly search for file | |
ff () { /usr/bin/find . -name "$@" ; } # ff: Find file under the current directory | |
ffs () { /usr/bin/find . -name "$@"'*' ; } # ffs: Find file whose name starts with a given string | |
ffe () { /usr/bin/find . -name '*'"$@" ; } # ffe: Find file whose name ends with a given string | |
# spotlight: Search for a file using MacOS Spotlight's metadata | |
# ----------------------------------------------------------- | |
spotlight () { mdfind "kMDItemDisplayName == '$@'wc"; } |
External | |
* [[https://github.com/lgandx/Responder.git | |
* [[https://github.com/quickbreach/SMBetray.git[SMB Betrayu] | |
* [[https://github.com/yamakira/censys-enumeration|censys enumeration via certificates]] | |
* [[https://github.com/FortyNorthSecurity/EyeWitness.git|Eyewitness]] | |
* [[https://github.com/michenriksen/gitrob.git|gitrob git]] | |
* [[https://github.com/aboul3la/Sublist3r.git|Sublistr]] | |
* https://github.com/OJ/gobuster.git - directory brute forcing | |
https://github.com/UnaPibaGeek/ctfr - certificates |
### Keybase proof | |
I hereby claim: | |
* I am fuzzzynoise on github. | |
* I am cyberdog (https://keybase.io/cyberdog) on keybase. | |
* I have a public key ASBhkRpcrCZ4g-xigQxYemx_W5rEWSLyW0cHKQL1bAiWRAo | |
To claim this, I am signing this object: |