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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import ipaddress
import socket
import requests
from const import HTTP_PORTS
def determine_http(ip: str, port: str):

Been observing rampant phishing activity targeting people of Ukraine offering Visa as bait.

Links formatted particularly like this are being forwarded inside emails/chat:

A quick glance will convince any user that the link will lead you to the login portal of But it won't. Clicking the link in the browser will lead you to the domain

Why? A root URL format looks like this (as defined in RFC 1808, Section 2.1):

0xInfection / basic.yml
Last active January 6, 2021 19:02
Basic automation workflow using GitHub Actions
name: My Custom Automation Setup
# Triggers the workflow when you push a commit to master branch
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
0xInfection /
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 / 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
# Do reverse ip lookup via the 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 = ""
# Kamailio (OpenSER) SIP Server v5.1 - default configuration script
# - web:
# - git:
# Direct your questions about this file to: <>
# Refer to the Core CookBook at
# for an explanation of possible statements, functions and parameters.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
def linSearch(arr, x):
for i in range(0, len(arr)):
if arr[i] == x:
return "Element found!"
def binSearch(arr, x, upper, lower=0):

Keybase proof

I hereby claim:

  • I am 0xinfection on github.
  • I am 0xinfection ( on keybase.
  • I have a public key ASBkHvsMAdUMWiHWf1hEMUVSlakEgETmpUX8h0Rhj5Rj2Qo

To claim this, I am signing this object: