Skip to content

Instantly share code, notes, and snippets.

View bongtrop's full-sized avatar

Pongsakorn Sommalai bongtrop

View GitHub Profile

Keybase proof

I hereby claim:

  • I am bongtrop on github.
  • I am bongtrop (https://keybase.io/bongtrop) on keybase.
  • I have a public key ASCgtTB_Z7eqnpxVNSGflDjkfRgTTMaOc76OTuijflGEjAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@bongtrop
bongtrop / loginme.js
Last active April 2, 2018 09:43
0CTF [WEB] LoginMe Writeup
var express = require('express')
var app = express()
var bodyParser = require('body-parser')
app.use(bodyParser.urlencoded({}));
var path = require("path");
var moment = require('moment');
var MongoClient = require('mongodb').MongoClient;
var url = "mongodb://localhost:27017/";
@bongtrop
bongtrop / cloudSettings
Created May 17, 2017 10:53
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-05-17T10:51:08.301Z","extensionVersion":"v2.7.0"}

Keybase proof

I hereby claim:

  • I am bongtrop on github.
  • I am bongtrop (https://keybase.io/bongtrop) on keybase.
  • I have a public key whose fingerprint is 4BE5 C4EE 0E38 1DE2 1F4E 963F 1424 FCF4 F32F 2488

To claim this, I am signing this object:

@bongtrop
bongtrop / craft.py
Created February 14, 2017 09:19
codegate 2017 2d life
from base64 import b64decode as decode
from base64 import b64encode as encode
import requests
import urllib
import re
def xor(a, b):
res = []
for i in range(len(a)):
@bongtrop
bongtrop / decrypt.py
Last active February 14, 2017 08:51
codegate 2017 2d life
from base64 import b64decode as decode
from base64 import b64encode as encode
import requests
import urllib
import re
def xor(a, b):
res = []
for i in range(len(a)):
import itertools
from hashlib import md5
vig = "ABCDEFGHIJKLMNOPQRSTUVWXYZ{}"
plaintext = "SECCON{???????????????????????????????????}"
md5text = "f528a6ab914c1ecf856a1d93103948fe"
cipher = "LMIG}RPEDOEEWKJIQIWKJWMNDTSR}TFVUFWYOCBAJBQ"
k = ["?"]*12
def vir(x, y):
@bongtrop
bongtrop / attack.py
Created December 13, 2016 08:35
biscuiti seccon 2016 ctf qual
import requests
import re
from base64 import b64decode as decode
from base64 import b64encode as encode
import urllib
URL = "http://biscuiti.pwn.seccon.jp/"
# XOR 2 string
def xor(a, b):
@bongtrop
bongtrop / index.html
Created November 28, 2016 13:44
Getlink
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="GetLinks Frontend Developer Test">
<meta name="author" content="">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<title>GetLinks Frontend Developer Test</title>