Skip to content

Instantly share code, notes, and snippets.

🍭
-w-

neargle neargle

🍭
-w-
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
phith0n / README.md
Last active Oct 5, 2019
梧桐百科投稿指南
View README.md

梧桐百科投稿指南

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

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

投稿步骤

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

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

视频整理:

https://www.bilibili.com/video/av3781284/

  • 中科大
  • 陈希孺版教材
  • 讲师可能是陈希孺老师的学生[大概]
  • 视频较清楚,老师讲课有口音
  • 讲课例子稍微比较多(可能不适合快速学习)
  • 有ppt展示和黑板
  • 可变速
@jabez007
jabez007 / Install-Barnyard.sh
Created Feb 12, 2018
A simple Bash script for install Snort and Barnyard on Cent OS 7 from source
View Install-Barnyard.sh
!/bin/bash
# Set the internal field separator
IFS=$'\n'
##
# Install pre-reqs
##
yum install libtool autoconf git
@cynicXer
cynicXer / masscan_to_nmap.py
Created Dec 8, 2017
Parse a masscan output and run an nmap scan on it
View masscan_to_nmap.py
#!/usr/bin/python
#
# 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
neargle / httplogger.py
Last active Jul 28, 2019
该脚本会在8080端口开启一个服务并记录所有访问到该服务的HTTP请求,返回访问时间并将请求包转化为Burpsuite等工具可用的格式记录在日志里。依赖Flask(pip install Flask),使用: python httplogger.py log.log
View httplogger.py
# coding=utf-8
# By Nearg1e
import logging
import datetime
import string
from sys import argv
from flask import Flask, request
app = Flask(__name__)
@jhaddix
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
simonw / recover_source_code.md
Last active Nov 13, 2019
How to recover lost Python source code if it's still resident in-memory
View recover_source_code.md

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 https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6

Attach a shell to the docker container

Install GDB (needed by pyrasite)

apt-get update && apt-get install gdb
@facert
facert / cosine_similarity.py
Last active Apr 16, 2019
python 余弦相似度代码示例
View cosine_similarity.py
# 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
yosemitebandit / xls_to_json.py
Created Apr 3, 2015
converting xls files to JSON dicts in python
View xls_to_json.py
"""XLS -> json converter
first:
$ pip install xlrd
then:
$ cat in.xls
date, temp, pressure
Jan 1, 73, 455
Jan 3, 72, 344
You can’t perform that action at this time.