Skip to content

Instantly share code, notes, and snippets.


neargle neargle

Block or report user

Report or block neargle

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
phith0n /
Last active Oct 5, 2019






neargle / .md
Last active Mar 13, 2018
概率论与数理统计 中文视频整理.md
View .md


  • 中科大
  • 陈希孺版教材
  • 讲师可能是陈希孺老师的学生[大概]
  • 视频较清楚,老师讲课有口音
  • 讲课例子稍微比较多(可能不适合快速学习)
  • 有ppt展示和黑板
  • 可变速
jabez007 /
Created Feb 12, 2018
A simple Bash script for install Snort and Barnyard on Cent OS 7 from source
# Set the internal field separator
# Install pre-reqs
yum install libtool autoconf git
cynicXer /
Created Dec 8, 2017
Parse a masscan output and run an nmap scan on it
# import masscan output and run an nmap scan on the results
import sys
import argparse
from libnmap.parser import NmapParser, NmapParserException
from libnmap.process import NmapProcess
neargle /
Last active Jul 28, 2019
该脚本会在8080端口开启一个服务并记录所有访问到该服务的HTTP请求,返回访问时间并将请求包转化为Burpsuite等工具可用的格式记录在日志里。依赖Flask(pip install Flask),使用: python log.log
# coding=utf-8
# By Nearg1e
import logging
import datetime
import string
from sys import argv
from flask import Flask, request
app = Flask(__name__)
jhaddix / all.txt
Last active Nov 11, 2019
all wordlists from every dns enumeration tool... ever. Please excuse the lewd entries =/
View all.txt
This file has been truncated, but you can view the full file.
simonw /
Last active Nov 13, 2019
How to recover lost Python source code if it's still resident in-memory

How to recover lost Python source code if it's still resident in-memory

I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using and

Attach a shell to the docker container

Install GDB (needed by pyrasite)

apt-get update && apt-get install gdb
facert /
Last active Apr 16, 2019
python 余弦相似度代码示例
# coding: utf-8
from math import sqrt
import jieba.analyse
def cut_word(content):
(u'\u65b9\u5e84', 2.4582479479)
(u'\u82b3\u57ce\u56ed', 1.19547675029)
(u'\u53ef\u6708\u4ed8', 1.19547675029)
View dirtycow-mem.c
* CVE-2016-5195 dirtypoc
* This PoC is memory only and doesn't write anything on the filesystem.
* /!\ Beware, it triggers a kernel crash a few minutes.
* gcc -Wall -o dirtycow-mem dirtycow-mem.c -ldl -lpthread
#define _GNU_SOURCE
yosemitebandit /
Created Apr 3, 2015
converting xls files to JSON dicts in python
"""XLS -> json converter
$ pip install xlrd
$ cat in.xls
date, temp, pressure
Jan 1, 73, 455
Jan 3, 72, 344
You can’t perform that action at this time.