Skip to content

Instantly share code, notes, and snippets.

View 0xInfection's full-sized avatar
👾
Invading space and time...

Pinaki 0xInfection

👾
Invading space and time...
View GitHub Profile
@0xInfection
0xInfection / DoD-fingerprint.md
Last active January 8, 2020 17:14
Badass Fingerprint :p

Fingerprint ID: 56ybn44ml
Response Stats:

HTTP 1.1
Status code: 503

Response Headers:

{
'Content-Length': '14889',

Fingerprint ID: 8bi4a6hka
Response Stats:

HTTP 1.1
Status Code: 400

Response Headers:

{
@0xInfection
0xInfection / wsort.py
Last active February 29, 2020 09:05
Use this script to sort out URLs from the wayback machine. :)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Written by: 0xInfection
# Context: https://twitter.com/har1sec/status/1183987309445820416
# Problem: https://gist.github.com/harisec/bff0ac7ad2e90da7e82297d945c63ef1
import optparse, sys
from urllib.parse import urlparse

Keybase proof

I hereby claim:

  • I am 0xinfection on github.
  • I am 0xinfection (https://keybase.io/0xinfection) on keybase.
  • I have a public key ASBkHvsMAdUMWiHWf1hEMUVSlakEgETmpUX8h0Rhj5Rj2Qo

To claim this, I am signing this object:

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
def linSearch(arr, x):
for i in range(0, len(arr)):
if arr[i] == x:
print()
return "Element found!"
def binSearch(arr, x, upper, lower=0):
#!KAMAILIO
#
# Kamailio (OpenSER) SIP Server v5.1 - default configuration script
# - web: https://www.kamailio.org
# - git: https://github.com/kamailio/kamailio
#
# Direct your questions about this file to: <[email protected]>
#
# Refer to the Core CookBook at https://www.kamailio.org/wiki/
# for an explanation of possible statements, functions and parameters.
# Do reverse ip lookup via the yougetsignal.com API (illegally).
# No license, do whatever you want to do with this script.
import io
import json
import time
import requests
def request(webs: str):
url = "https://domains.yougetsignal.com/domains.php"
@0xInfection
0xInfection / concurrency.go
Last active February 12, 2022 15:09
Example code which implements go concurrency
import "sync"
func exampleFunc(str string) {
// function to run concurrently
}
func main() {
threadVal := 50 // number of threads to use
allItems := []string{} // the slice containing whatever you want to pass to exampleFunc
// creating a channel of strings, use whatever type the exampleFunc() takes in
@0xInfection
0xInfection / untangle.py
Last active November 4, 2020 15:52
Untangles/flattens a nested dictionary.
jd = {
"left": {
"left": {
"type": "Literal",
"value": "a"
},
"right": {
"type": "Literal",
"value": "b"
}
@0xInfection
0xInfection / basic.yml
Last active January 6, 2021 19:02
Basic automation workflow using GitHub Actions
name: My Custom Automation Setup
on:
# Triggers the workflow when you push a commit to master branch
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs: