Skip to content

Instantly share code, notes, and snippets.

View komang4130's full-sized avatar

Lê Quang Thảo komang4130

View GitHub Profile
import socket
#Get every part of key
host = '125.235.240.167'
port = 13337
s = socket.socket()
s.connect((host,port))
data = s.recv(1024)
print ord(data[1]),"=>",ord(data[1])+8
plain = 'matesctf'
import string
import subprocess as sp
import os
def get_inscount():
count = open('./inscount.out').read().strip()
count = int(count.split(' ')[1])
return count
def mk_input(s):
import base64
from Crypto.Util.number import *
from Crypto.PublicKey import RSA
def gcd(a,b):
while b != 0:
t = b
b = a % b
a = t
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package UDP_Cau3;
import UDP_MulThread_guess.UDP_thread_server;
import static UDP_MulThread_guess.UDP_thread_server.check;
import static UDP_MulThread_guess.UDP_thread_server.receivePacket;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package UDP_Cau3;
import UDP_MulThread_guess.UDP_thread_client;
import java.io.IOException;
import java.net.DatagramPacket;
<html>
<head>
<center>
<h1> Challenge by 9n4m0k</h1>
<form enctype="multipart/form-data" action ="#" method="POST">
<h2> Choose an image to upload </h2>
<br>
<input name="upload" type="file">
<br>
<input name="submit" type="submit" value="submit">
#include <iostream>
#include <fstream>
#include <cstring>
#include <linux/input.h>
using namespace std;
#include <string>
#include <iostream>
#include <stdio.h>
<!DOCTYPE html>
<html>
<head>
<title>Challenge by K0m4ng</title>
</head>
<body>
<form action="#" method="POST" >
<center>
<h2>MD5 Checksum for everyone</h2>
<br>
#define _GNU_SOURCE
#include <dlfcn.h>
#include <stdio.h>
#include <string.h>
#include <linux/input.h>
/* Function pointers to hold the value of the glibc functions */
static ssize_t (*real_write)(int fd, const void *buf, size_t count) = NULL;
/* wrapping write function call */
#include <iostream>
#include <fstream>
#include <linux/input.h>
#include <string>
#include <cstring>
using namespace std;
std::string toChar( int keycode , int caplock )
{
switch(keycode)