Skip to content

Instantly share code, notes, and snippets.

Fahad Yousuf fahadysf

Block or report user

Report or block fahadysf

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fahadysf
fahadysf / create-ca-and-server-cert.sh
Created Dec 9, 2018
Script to create Self-Signed CA and Server Cert (using the CA)
View create-ca-and-server-cert.sh
#!/bin/bash
# Parameters for the Root CA Certificate (Self-Signed)
# Please Modify this according to your needs
CA_KEY_SIZE="4096"
# CA Certificate Subject Parameters
# Please Modify these according to your needs
C="SA"
ST="Riyadh"
O="Acme.com"
OU="PA"
@fahadysf
fahadysf / pattern-extractor.py
Last active Sep 22, 2018
This script extracts TCP Flows from a Packet Capture files and finds common patterns (hex) of give length (default 7-bytes). Useful for Custom App-ID Creation
View pattern-extractor.py
#!/usr/bin/env python
"""
Copyright (C) 2018
Author: Fahad Yousuf
This script extracts TCP Flows from a Packet Capture files and finds
common patterns (hex) of give length (default 7-bytes)
Usage: flowextractor.py [-h] [-d DPORT] inputfile
@fahadysf
fahadysf / check-temp.py
Last active Oct 10, 2018
Python 2 script to extract 'sensors' command temperature readings
View check-temp.py
"""
Script to create output of Physical Package CPU Temperature
using the sensors command. Handy for feeding to NetXMS with the below
Agent Config line
ExternalParameterShellExec=CPUTemperature(*): python /root/check-temp.py $1
"""
import sys
import subprocess
View keybase.md

Keybase proof

I hereby claim:

  • I am fahadysf on github.

  • I am fahadysf (https://keybase.io/fahadysf) on keybase.

  • I have a public key ASDkblr_kBLbw68SVDakAelHy2qLLpPcj6IYO7IpbdDg2Qo

@fahadysf
fahadysf / custom-appid.py
Last active Sep 18, 2018
Find strings for APP-ID from PCAP files
View custom-appid.py
#!/usr/local/bin/python2.7
"""
Copyright (C) 2018
Authors: Fahad Yousuf, Lorenzo Castelletti
This script parses a PCAP file and looks for common data patterns in TCP payloads.
These can then be used as signatures while building a custom App-ID.
It works for captures with multiple sessions of the same unknown-tcp traffic.
@fahadysf
fahadysf / goget.go
Created Nov 6, 2017
Multi-threaded HTTP downloader in Go
View goget.go
package main
import (
"crypto/md5"
"encoding/hex"
"flag"
"fmt"
"io"
"net/http"
"os"
View multiprocess-web-prober.py
#!/usr/bin/python
from multiprocessing import Pool, Manager
from http.server import BaseHTTPRequestHandler, HTTPServer
import urllib.request
import json
import cgi
import random, time
# Resources to read
@fahadysf
fahadysf / igate-style.css
Last active Apr 12, 2017
Stylish (Google Chrome Extension) Style for iGate
View igate-style.css
@font-face {
font-family: "STC-Regular";
}
* {
font-family: 'Calibri' !important;
font-size: 14px;
}
.ui-widget input,
.ui-widget select,
.ui-widget textarea,
@fahadysf
fahadysf / README.md
Last active Jun 14, 2019
A multiprocess task broker which accepts and provides status reports for tasks using JSON REST API calls.
View README.md

Multiprocess Task Broker with REST API

This gist shows and example or an asynchronous multiprocess task broker which can take job requests and report on running jobs via a minimal REST API.

Adapted from https://gist.github.com/nitaku/10d0662536f37a087e1b

All of the caveats from the original author still apply.

@fahadysf
fahadysf / taskdaemon-py3.py
Last active Feb 26, 2017
A multiprocess task broker which acts as: an example of Multiprocess asynchronous tasks which update a shared dictionary provided by multiprocess.Manager.
View taskdaemon-py3.py
#!/usr/bin/python
from multiprocessing import Pool, Manager
from http.server import BaseHTTPRequestHandler, HTTPServer
import json
import cgi
import random, time
# Resources to read
#
You can’t perform that action at this time.