Skip to content

Instantly share code, notes, and snippets.

View OffXec's full-sized avatar
🎯
Focusing

OffXec OffXec

🎯
Focusing
View GitHub Profile
@OffXec
OffXec / readbyline.go
Created April 10, 2021 18:44
GoLang doodles
func readFileWithReadString(fn string) (err error) {
fmt.Println("readFileWithReadString")
file, err := os.Open(fn)
if err != nil {
return err
}
defer file.Close()
// Start reading from the file with a reader.
@OffXec
OffXec / reflective_checker.sh
Last active April 29, 2021 20:41
Work in progress - XSSWingman automation
#!/bin/bash
u=$1
p="HEY_XSS_HERE"
filename=""
load_file=false
red="\033[31;40m"
none="\033[0m"
urls=0
function txt_check() {
@OffXec
OffXec / BashCourse_Notes
Created March 6, 2021 19:20
"Learning Bash Scripting" course notes.
Notes I've taken from when I took the "Learning Bash Scripting" course on LinkedIn Learning.
Figured I'd share :)
--------------------------------------------
-"Learning Bash Scripting"-
Course Link:
https://www.linkedin.com/learning/learning-bash-scripting-2
--------------------------------------------
Self-Promo:
[https://www.linkedin.com/in/offxec/]
@OffXec
OffXec / pentest.sh
Last active August 31, 2022 13:25
Installs pentesting tools, then symlinks them to be ran seamlessly.
#/bin/bash
git clone https://github.com/danielmiessler/SecLists.git /opt/seclists
git clone https://github.com/s0md3v/XSStrike.git /opt/xsstrike
sudo ln -s /opt/xsstrike/xsstrike.py /usr/local/bin/xsstrike
chmod +x /opt/xsstrike/xsstrike.py
git clone https://github.com/s0md3v/Arjun.git /opt/arjun
sudo ln -s /opt/arjun/arjun.py /usr/local/bin/arjun
@OffXec
OffXec / TorPrivoxyPython.md
Created April 4, 2019 19:46 — forked from DusanMadar/TorPrivoxyPython.md
A step-by-step guide how to use Python with Tor and Privoxy
@OffXec
OffXec / alexa.js
Created March 25, 2019 07:26 — forked from chilts/alexa.js
Getting the Alexa top 1 million sites directly from the server, unzipping it, parsing the csv and getting each line as an array.
var request = require('request');
var unzip = require('unzip');
var csv2 = require('csv2');
request.get('http://s3.amazonaws.com/alexa-static/top-1m.csv.zip')
.pipe(unzip.Parse())
.on('entry', function (entry) {
entry.pipe(csv2()).on('data', console.log);
})
;