Skip to content

Instantly share code, notes, and snippets.

View Juan-Embid's full-sized avatar
:electron:
programming

Juan Embid Juan-Embid

:electron:
programming
View GitHub Profile
@Juan-Embid
Juan-Embid / googe_dorks_cheatsheet.md
Last active February 24, 2026 22:08
A list of useful Google Dorks queries and explanations

Google-Dorks-Cheat-Sheet

A list of useful Google Dorks queries and explanations. Feel free to improve with your own payloads and techniques. Go ahead an make a pull request.

Documentation

Every section contains the following information:

  • A query description and how to exploit it, including several payloads
  • Pictures for the README.md
  • Other content referenced in the description
@Juan-Embid
Juan-Embid / list_devices.md
Last active September 4, 2024 13:56
List USB Devices Linux Command Line
@Juan-Embid
Juan-Embid / jump.sh
Created March 16, 2022 15:56
Got this script from geeksforgeeks. The script jumps to the desire directory with out typing "cd ../../../../.. ". Execute permissions are needed ($ chmod -x path/to/our/file/jump.sh) and also add it to your bashrd ($ echo “source ~/path/to/our/file/jump.sh”>> ~/.bashrc). Now you can try the script ($ jump dir_name)
# !/bin/bash
# A simple bash script to move up to desired directory level directly
function jump()
{
# original value of Internal Field Separator
OLDIFS=$IFS
# setting field separator to "/"
@Juan-Embid
Juan-Embid / OpenDefaultBrowser.py
Created March 2, 2022 11:17
Script to search, find and open your default browser in linux
import subprocess
default_input = ['xdg-mime', 'query', 'default', 'x-scheme-handler/http']
default_executable = ['grep', 'Exec', '-w', '-m1']
final_search = ['github.com/Juan-Embid'] #the page you decide to open
web_page_file = subprocess.run(default_input, stdout=subprocess.PIPE).stdout.decode('utf-8')
web_page_file = web_page_file.split("\n")
web_page_file_path = "/usr/share/applications/" + web_page_file[0]
default_executable.insert(2, web_page_file_path)
@Juan-Embid
Juan-Embid / PolarPoints.py
Created February 23, 2022 10:59
Given two points it calculates the value of the new symmetric points at a certain angle
def get_distance(x1, y1, x2, y2):
dist = math.sqrt(pow((x2 - x1), 2) + pow((y2 - y1), 2))
def circunference_points(P1, P2, Cx, Cy): #Polar points
P1x = P1 - Cx
dist = get_distance(P1, P2, Cx, Cy)
deg = math.acos(P1x / dist)
C1x = Cx + dist * math.cos((0.785398163397 / 2) + deg) #where 0.785398163397 is 45 degrees in radians
C1y = Cy - dist * math.sin((0.785398163397 / 2) + deg) #you can put what ever angle you want in radians
C2x = Cx + dist * math.cos(deg -(0.785398163397 / 2))