Skip to content

Instantly share code, notes, and snippets.

View htkcodes's full-sized avatar
🎯
Focusing

BL/VCK htkcodes

🎯
Focusing
View GitHub Profile
#!/bin/bash
CUR_DIR=$(pwd)
while getopts ":f:" input;do
case "$input" in
f) file=${OPTARG}
;;
esac
done
!
!.gitignore
!.htaccess
!.htpasswd
!=
#
#3ooo<ul>HI</ul>%25
#'-alert(document.domain)-'
%20../
@htkcodes
htkcodes / useful.sh
Last active August 7, 2021 16:32
Useful scripts
#Grabs IP's from a file
grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' file.txt
#COMMA SEP IP
grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' ssl.txt | tr '\n' ',' | sed 's/.$//' - comma seperated ips
@htkcodes
htkcodes / subrecon.sh
Last active September 25, 2020 16:43
#!/bin/bash
#ADD VHOST DISCOVERY
CUR_DIR=$(pwd)
github_token=''
while getopts ":f:" input;do
case "$input" in
f) file=${OPTARG}
;;
ffuf -w dirsearch/db/dicc.txt -u <url>/FUZZ -H "HOST:localhost" -mc 200,302 -t 60
#Grabs ip's from text
grep -E -o '(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)' <source> > <destination>
@htkcodes
htkcodes / gitsnippets.js
Last active May 2, 2020 23:22
Git Snippets
/**Amending the most recent commit message
//git commit --amend
//will open your editor, allowing you to change the commit message of the most recent commit. Additionally, you can set the commit message directly in the command line with:
https://stackoverflow.com/questions/179123/how-to-modify-existing-unpushed-commits
*/
git commit --amend -m "New commit message"
//Getting all from git repo
var kek;
var one = 1;
var two = 2;
var three = 3;
var four = 4;
kek = "<a href=\"#\" onclick=\"wi_open_report(this,'".concat(one, "','1','").concat(two, "','").concat(two, "','4','n')\"> ").concat(one, "</a>");
@htkcodes
htkcodes / gitflow-breakdown.md
Created November 22, 2018 20:41 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

$(document).ready(function () {
console.log("ready!");
startTime();
});
function startTime() {
var today = new Date();
var h = today.getHours();