Skip to content

Instantly share code, notes, and snippets.

View OsamaMahmood's full-sized avatar
🎯
Focusing

Osama Mahmood OsamaMahmood

🎯
Focusing
View GitHub Profile
@OsamaMahmood
OsamaMahmood / HTTP-Auth-Timing.py
Last active October 11, 2018 13:09
HTTP Auth Timing based authentication bypass
#!/usr/bin/python
import requests
import datetime
import string
import sys
ALPHABET = string.printable
RETRIES = 1
from bs4 import BeautifulSoup
import requests
file_name = "dl.txt"
file = open(file_name, 'wb')
for x in range(0,2):
index_url = "https://horriblesubs.info/api.php?method=getshows&type=show&showid=347&nextid="+str(x)
ua_string = {
'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 5_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B179 Safari/7534.48.3'
}
@OsamaMahmood
OsamaMahmood / wazuh-deployment.ps1
Last active April 13, 2020 05:06
Deploy Wazuh agents using Powershell
param (
#Mandatory
[switch]$Elevated,
[string]$address = "", #Wazuh Server IP
#Optionals
[string]$app_folder = "",
[string]$port = "1514",
[string]$protocol = "tcp",
[string]$auth_server = "",
@OsamaMahmood
OsamaMahmood / .tmux.conf
Last active June 4, 2020 05:26
basic confuration for tmux
# Remap prefix to screen
set -g prefix C-a
bind C-a send-prefix
unbind C-b
#Quality of life stuff
set -g history-limit 10000
set -g allow-rename off
# Join Windows

Dependencies:

sudo apt-get update -y
sudo apt-get install build-essential libssl-dev libpq-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip -y
sudo apt-get install python3-pip python3-dev python3-venv -y
sudo apt-get install nano -y
sudo apt-get install git -y

Installation

sudo python3 -m pip install jupyter
sudo apt autoremove -y

input {
jdbc {
clean_run => true
jdbc_driver_library => "/root/jdbc.jar"
jdbc_driver_class => "com.mysql.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/jobschema"
jdbc_user => "root"
jdbc_pass => ""
schedule => "* * * * *"
statement => "select jobid, jobname, executiontime, jobstatus from jobdata where jobid > :sql_last_value"

Keybase proof

I hereby claim:

  • I am osamamahmood on github.
  • I am osamamahmood (https://keybase.io/osamamahmood) on keybase.
  • I have a public key ASAqUiPXl2OL3OaytEhia7Qe3TdwJJRIMzj7G1oFRH4BFgo

To claim this, I am signing this object: