Skip to content

Instantly share code, notes, and snippets.

@afwu
afwu / demo.ts
Created December 24, 2024 02:19 — forked from vedantroy/demo.ts
SQLite-backed key-value store with JS-like object manipulation and automatic JSON serialization.
import Database from 'better-sqlite3';
import { createDatabaseClient } from './proxy.ts';
// 1) Create an in-memory DB and your table(s).
const db = new Database(':memory:');
db.exec(`
CREATE TABLE users (
id TEXT PRIMARY KEY,
data JSON
);
@afwu
afwu / win_vms.md
Created May 17, 2024 06:55 — forked from gabemarshall/win_vms.md
Temporary Windows VMs

Retrieve List of Microsoft IE/Edge Trial VMs

(credit to https://twitter.com/jack_halon/status/1229467736759263233)

curl https://web.archive.org/cdx/search\?url\=az792536.vo.msecnd.net\&matchType\=prefix\&collapse\=urlkey\&output\=json\&fl\=original%2Cmimetype%2Ctimestamp%2Cendtimestamp%2Cgroupcount%2Cuniqcount\&filter\=\!statuscode%3A%5B45%5D |jq -r '.[][]'| grep -v -F '.txt'|grep -F '.zip'|sort -u
IE/Edge VMs

@afwu
afwu / poc.html
Last active September 11, 2023 08:11
this is a demo page
@afwu
afwu / .gitignore
Created July 26, 2023 03:28 — forked from ThaddeusJiang/.gitignore
docker compose local postgres db
local/
void __fastcall compress(dword *MDbuf, dword *X)
{
dword v2; // r8
dword v3; // r15
dword v4; // r9
dword v5; // r10
dword v6; // rcx
dword v7; // r11
dword v8; // r8
dword v9; // r9
<script type="text/javascript" src="utility.js"></script>
@afwu
afwu / gpt.py
Created February 20, 2023 08:48 — forked from ustayready/gpt.py
CloudGPT - Use ChatGPT to analyze AWS policies for vulnerabilities
import openai
import boto3
import json
import time
from typing import Dict, List
openai.api_key = '### SET YOUR OPENAPI API KEY HERE ###'
session = boto3.session.Session()
client = session.client('iam')
@afwu
afwu / openwrt-8021x.md
Created February 13, 2023 07:51 — forked from LupusArgentum/openwrt-8021x.md
OpenWrt-router as 802.1x-client

OpenWrt-router as 802.1x-client

This use-case is a pretty rare one, but in some circumstances, it can be very helpful. For example when you live in a student dormatory which only offers one 802.1x-encrypted LAN-port in your room, but you want to run your own wifi-network to be online with other clients, too, like your laptop or smartphone. In this case, normal routers with stock firmware won't help you out because most don't support this networking protocol. OpenWrt on the other hand offers you the possibility to connect your router (you could buy this one if you don't already have a suiting router) to the 802.1x-network via WAN and enable you to have an own, independent network. Here's how.

Important: before you attempt to do this, it is NECESSARY to ask your network admin if he/she is okay with your usage scenario. This can cause some trouble if you do it without permission, as many 802.1x-networks aim to prevent this exact use-case.

So here's the deal

@afwu
afwu / 250.csv
Created January 13, 2023 15:28 — forked from jinjier/javdb-top250.md
JavDB Top 250 movies code list. [Updated at 2022/09]
1 LAFBD-41
2 SSNI-497
3 IPX-177
4 ABP-984
5 SSIS-465
6 IPX-580
7 IPX-811
8 SMBD-115
9 IPX-534
10 IPX-726
# Centos Web Panel 7 Unauthenticated Remote Code Execution - CVE-2022-44877
[+] Centos Web Panel 7 Unauthenticated Remote Code Execution
[+] Centos Web Panel 7 - < 0.9.8.1147
[+] Affected Component ip:2031/login/index.php?login=$(whoami)
[+] Discoverer: Numan Türle @ Gais Cyber Security
[+] Vendor: https://centos-webpanel.com/ - https://control-webpanel.com/changelog#1669855527714-450fb335-6194