Skip to content

Instantly share code, notes, and snippets.

View realsung's full-sized avatar
๐Ÿ˜ฎโ€๐Ÿ’จ
I may be slow to respond.

SungJun Park realsung

๐Ÿ˜ฎโ€๐Ÿ’จ
I may be slow to respond.
View GitHub Profile
import hashlib
import re
import string
ALLOWED_CHARACTERS = string.hexdigits
NUMBER_OF_CHARACTERS = len(ALLOWED_CHARACTERS)
def characterToIndex(char):
return ALLOWED_CHARACTERS.index(char)
from z3 import *
from pwn import *
p = remote('218.158.141.199',24763)
s = Solver()
x = [Int('x%i'%i)for i in range(12,130)]
y = [Int('y%i'%i)for i in range(12,130)]
x1 = [Int('x1%i'%i)for i in range(12,130)]
y1 = [Int('y1%i'%i)for i in range(12,130)]
x2 = [Int('x2%i'%i)for i in range(12,130)]
from pwn import *
from ast import literal_eval
p = remote('218.158.141.182',52387)
for i in range(100):
payload=""
print p.recvuntil('Step : ' + str(i+1) + "\n\n")
text = p.recvline()
text = list(text)
from pwn import *
import base64
import binascii
import os
import wave
import pylab
import sys
#import pytesseract
from termios import tcflush, TCIFLUSH
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
typedef struct Node {
uint64_t data;
struct Node* next;
}Node;
void addNode(uint64_t data, Node* ptr) {
#include <iostream>
#include <list>
using namespace std;
int main() {
list<int> l;
l.push_back(1); l.push_back(2); // ๋งจ ๋’ค ์›์†Œ ์‚ฝ์ž…
l.push_back(3); l.push_back(4);
l.pop_back(); // ๋งจ ๋’ค ์›์†Œ ์ œ๊ฑฐ
l.push_front(0); // ๋งจ ์•ž ์›์†Œ ์‚ฝ์ž…
#include <stdio.h>
#include <stdlib.h>
typedef struct LinkNode {
int data;
struct ListNode* link;
}ListNode;
ListNode* insert_first(ListNode* head, int item) {
if (head == NULL) {
head = (ListNode*)malloc(sizeof(ListNode));
@realsung
realsung / matlab_project_with_crime.m
Last active November 29, 2023 18:12
๋ฒ”์ฃ„, ์˜จ๋„, ๊ฐ•์ˆ˜๋Ÿ‰ ๋ถ„์„
% ๋ฐ์ดํ„ฐ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ
% 1967~2013
crime = readmatrix('/MATLAB Drive/Project/๋ฒ”์ฃ„+๋ฐœ์ƒํ˜„ํ™ฉ_20231126205945.csv');
temp = readmatrix('/MATLAB Drive/Project/์„œ์šธ์‹œ_์›”๋ณ„_๊ธฐ์˜จ_1967_2013.csv');
precipitation = readmatrix('/MATLAB Drive/Project/์„œ์šธ์‹œ_์›”๋ณ„_๊ฐ•์ˆ˜๋Ÿ‰_1967_2013.csv');
% ๋ฐ์ดํ„ฐ ์ถ”์ถœ
crimeNum = crime(:, 2);
tempNum = temp(:, 3);
precipitationNum = precipitation(:, 3);
@startuml
!include <cloudinsight/docker>
!include <cloudinsight/redis>
!include <logos/prisma>
!include <logos/vercel>
!include <logos/vercel-icon>
!include <logos/python>
!include <logos/nextjs>
!include <aws/Compute/AmazonEC2/AmazonEC2>