Skip to content

Instantly share code, notes, and snippets.

View zeyu2001's full-sized avatar
🎯
Focusing

Zeyu Zhang zeyu2001

🎯
Focusing
View GitHub Profile
@zeyu2001
zeyu2001 / README.md
Created August 28, 2023 00:17
SekaiCTF 2023

Frog-WAF

Using getClass() and getMethods() to access filtered methods. The goal was to get ${Class.forName('java.lang.Runtime').getRuntime().invoke(null).exec(<RCE>).getInputStream().read()}.

import requests


def get_int(i):
@zeyu2001
zeyu2001 / CVE-2023-30334.txt
Last active April 29, 2023 07:19
CVE-2023-30334
[Description]
AsmBB v2.9.1 was discovered to contain multiple cross-site scripting
(XSS) vulnerabilities via the MiniMag.asm and bbcode.asm libraries.
------------------------------------------
[Additional Information]
This vulnerability was discovered through the hxp CTF.
Several teams used different variations of the vulnerability but the root cause and impact are similar.
@zeyu2001
zeyu2001 / bst_array
Created September 27, 2019 10:09
Binary Search Tree (BST) Array Implementation in Python
# Compact BST (Array Implementation) -----------#
# rightPtr = Ptr * 2 + 2, leftPtr = Ptr * 2 + 1 #
BST = [None for _ in range(21)]
def insert(BST, data):
if not BST[0]: # empty
BST[0] = data
@zeyu2001
zeyu2001 / bst.py
Last active September 27, 2019 10:10
Binary Search Tree (BST) Dynamic Node Python Implementation
# BST (OOP Array/FreeSlot Linked List Implementation) -----------#
class Node:
def __init__(self, data, ptr, leftPtr, rightPtr):
self._data = data
self._ptr = ptr
self._leftPtr = leftPtr
self._rightPtr = rightPtr
@zeyu2001
zeyu2001 / linked_list_non_array.py
Created September 27, 2019 10:03
Linked List OOP Implementation (without array)
class ListNode:
def __init__(self, DataValue):
self._DataValue = DataValue
self._NextNode = None
def set_DataValue(self, DataValue):
self._DataValue = DataValue
def set_NextNode(self, NextNode):
self._NextNode = NextNode
@zeyu2001
zeyu2001 / linked_list.py
Created September 27, 2019 10:02
Linked List OOP Implementation in Python (with array)
class ListNode:
def __init__(self):
self._Name = None
self._Pointer = None
def SetName(self, Name):
self._Name = Name
def SetPointer(self, Pointer):
self._Pointer = Pointer
@zeyu2001
zeyu2001 / rsa_p36.py
Created January 8, 2019 15:19 — forked from dendisuhubdy/rsa_p36.py
RSA Implementation Running on Python 3.6
"""
Implementation of RSA cryptography
using samples of large numbers
"""
import random
import sys
import math
from random import randrange