Skip to content

Instantly share code, notes, and snippets.

View VictorNS69's full-sized avatar
🖥️
\_(º-º)_/

Víctor Nieves Sánchez VictorNS69

🖥️
\_(º-º)_/
View GitHub Profile
@VictorNS69
VictorNS69 / nc-tcp-forward.sh
Created September 6, 2023 09:57 — forked from holly/nc-tcp-forward.sh
easy tcp port forwarding by netcat
#!/usr/bin/env bash
set -e
if [ $# != 3 ]; then
echo 'Usage: nc-tcp-forward.sh $FRONTPORT $BACKHOST $BACKPORT' >&2
exit 1
fi
@VictorNS69
VictorNS69 / subdomain_takeover_template.html
Created September 1, 2023 10:05
Subdomain Takeover template
<html>
<head>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<title>Subdomain Takeover</title>
<script> alert("This subdomain is vulnerable")</script>
</head>
<body>
<style>
@VictorNS69
VictorNS69 / GoogleDorking.md
Created January 20, 2022 11:14 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@VictorNS69
VictorNS69 / sed cheatsheet
Created January 20, 2022 11:14 — forked from un33k/sed cheatsheet
magic of sed -- find and replace "text" in a string or a file
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
@VictorNS69
VictorNS69 / clickjacking.html
Last active March 30, 2022 12:14
Basic clickjacking template
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Clickjacking Test</title>
<style>
iframe {
position: relative;
width: 500px;
@VictorNS69
VictorNS69 / fakeRedirect.py
Created October 6, 2021 18:54
FakeRedirect server with Python 3
#!/usr/bin/env python3
from http.server import HTTPServer, BaseHTTPRequestHandler
# Open netcat on port 6969
# nc -lvnp 6969
REDIRECT_URL = f"http://localhost:6969"
LISTENER_PORT = 8080
class FakeRedirect(BaseHTTPRequestHandler):
@VictorNS69
VictorNS69 / create_eth_keystore.js
Last active August 20, 2021 07:28
Creates a new Ethereum Keystore
// Usage: node create_eth_keystore.js
// Node v10+
// Dependencies
// npm i [email protected]
const Wallet = require('ethereumjs-wallet')
const accountPassword = "" // Put here the password you want for your keystore
const key = Wallet.generate(accountPassword)
const privateKey = key._privKey
@VictorNS69
VictorNS69 / publicKeyTx.js
Created March 10, 2020 15:16
How to get the public key that signed the transaction in JavaScript
/* Example of how to obtain the public key that
* signed the Tx
*/
/* Requires needed. You have to install the following
* packages
* npm install ethereumjs-util ethereumjs-tx
*/
const ethereumTx = require('ethereumjs-tx').Transaction;
const eth_util = require('ethereumjs-util')
@VictorNS69
VictorNS69 / get_address_from_pubk.py
Last active March 10, 2020 15:17
How to get the address from a public key in Python
#!/usr/bin/env python3
"""
You will need to install the pycryptodome package.
You can do it with:
pip3 install pycryptodome
Note: To install pip3, run the following command
sudo apt install python3-pip
"""
@VictorNS69
VictorNS69 / A hack for showing LaTeX formulas in GitHub markdown.md
Last active January 19, 2024 11:47
How to add LaTex formula to a Markdown