Skip to content

Instantly share code, notes, and snippets.

View iMrDJAi's full-sized avatar
💀
isDead: true

${Mr.DJA} iMrDJAi

💀
isDead: true
  • Bab Ezzouar, Algiers
  • 08:25 (UTC +01:00)
View GitHub Profile
@iMrDJAi
iMrDJAi / notifications.js
Created June 21, 2024 22:58
Monitor browser notifications using puppeteer.
import puppeteer from 'puppeteer-core'
main()
async function main() {
let page, browser
try {
browser = await connectBrowser()
page = await browser.newPage()
@iMrDJAi
iMrDJAi / CVE-2006-4304.py
Last active May 5, 2024 01:22
My implementation of a proof of concept for the `CVE-2006-4304` sppp driver vulnerability that affected PS4/PS5 and earlier versions of FreeBSD/NetBSD
from scapy.all import sniff, sendp
from socket import *
import time
# Replace with your PS4/5's MAC address.
dst_mac=b'\xaa\xbb\xcc\xdd\xee\xff'
# Replacing source MAC address is not mandatory
src_mac= b'\xab\xcd\xef\xab\xcd\xef'
# Replace this with your computer's ethernet interface name
iface_name = 'Ethernet'
@iMrDJAi
iMrDJAi / mongodb-setup.md
Last active March 6, 2023 16:24
A tutorial to setup MongoDB on Ubuntu

MongoDB version: 5, Ubuntu version: 20.04 LTS.

$ sudo su
# apt-get update
# apt-get upgrade
# wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
# echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
# apt-get update
# apt-get install -y mongodb-org
@iMrDJAi
iMrDJAi / onec-dz-bruteforce.js
Last active June 24, 2024 00:14
onec.dz bruteforce scripts.
async function bruteforce(id, pass) {
pass = ('0000' + pass).slice(-4)
const resc = await (async function f() {
try {
const res = await (await fetch(`${window.location.href.replace(/\/+$/, '')}/resc/`)).text()
const match = res.match(/(\d+(?:\+|\-)\d+)[\s\S]+value=(.+)>/)
if (match) {
return {
formula: match[1],
solution: eval(match[1]),