Skip to content

Instantly share code, notes, and snippets.

View neargle's full-sized avatar
:octocat:
Neargle: Neko~

neargle neargle

:octocat:
Neargle: Neko~
  • Xiamen, China
  • 21:50 (UTC +08:00)
View GitHub Profile
@phith0n
phith0n / download.php
Last active July 22, 2021 04:16
progress enabled file server
<?php
set_time_limit(0);
$filename = 'bigfile.txt';
$f = fopen($filename, 'r');
$i = 0;
$chunk = 2;
$each = 100 / (filesize($filename) / $chunk);
while (true) {
@neargle
neargle / httplogger.py
Last active August 21, 2020 10:59
该脚本会在80端口开启一个服务并记录所有访问到该服务的HTTP请求,返回访问时间并将请求包转化为Burpsuite等工具可用的格式记录在日志里。依赖Flask(pip install Flask),使用: python httplogger.py log.log
# coding=utf-8
# nearg1e.com@gmail.com
import os
import logging
import datetime
import string
from sys import argv
from flask import Flask, request
@yosemitebandit
yosemitebandit / xls_to_json.py
Created April 3, 2015 03:28
converting xls files to JSON dicts in python
"""XLS -> json converter
first:
$ pip install xlrd
then:
$ cat in.xls
date, temp, pressure
Jan 1, 73, 455
Jan 3, 72, 344
@phith0n
phith0n / README.md
Last active October 5, 2019 14:07
梧桐百科投稿指南

梧桐百科投稿指南

梧桐百科是一个碎片化安全知识学习平台,我们将细小的知识点(tricks)写入卡片,以卡片的形式让学习者对知识的认识程度更加深刻。

我们接受用户投稿,大家可以把自己觉得优秀的碎片化知识发送给我们,投稿地址:https://tricking.io/card/contribute/

投稿步骤

投稿前,请先搜索,可能你的知识点已经被梧桐百科收录。

@gkbrk
gkbrk / scanner.py
Created March 10, 2015 21:11
Simple port scanner in Python.
import socket
import sys
import threading
import queue
import time
common_ports = {
"21": "FTP",
"22": "SSH",
"23": "Telnet",