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
#!/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: |
### 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: |
#Restringir el acceso en caso de emergencia | |
#order deny,allow | |
#deny from all | |
#emergencia | |
#allow from #allow from $MIIP | |
#Nadie ve el htaccess | |
<files .htaccess> | |
order allow,deny | |
deny from all | |
allow from 127.0.0.1 |
$ system_profiler #Information about the password policies | |
$ getaccountpolicies #pwpolicy | |
$ pbpaste text # Clipboard contents | |
$ df -aH # Locally mounted shares | |
$ history |
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 | |