梧桐百科是一个碎片化安全知识学习平台,我们将细小的知识点(tricks)写入卡片,以卡片的形式让学习者对知识的认识程度更加深刻。
我们接受用户投稿,大家可以把自己觉得优秀的碎片化知识发送给我们,投稿地址:https://tricking.io/card/contribute/
投稿前,请先搜索,可能你的知识点已经被梧桐百科收录。
<?php | |
set_time_limit(0); | |
$filename = 'bigfile.txt'; | |
$f = fopen($filename, 'r'); | |
$i = 0; | |
$chunk = 2; | |
$each = 100 / (filesize($filename) / $chunk); | |
while (true) { |
梧桐百科是一个碎片化安全知识学习平台,我们将细小的知识点(tricks)写入卡片,以卡片的形式让学习者对知识的认识程度更加深刻。
我们接受用户投稿,大家可以把自己觉得优秀的碎片化知识发送给我们,投稿地址:https://tricking.io/card/contribute/
投稿前,请先搜索,可能你的知识点已经被梧桐百科收录。
视频整理:
!/bin/bash | |
# Set the internal field separator | |
IFS=$'\n' | |
## | |
# Install pre-reqs | |
## | |
yum install libtool autoconf git |
#!/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 |
# coding=utf-8 | |
# nearg1e.com@gmail.com | |
import os | |
import logging | |
import datetime | |
import string | |
from sys import argv | |
from flask import Flask, request |
. | |
.. | |
........ | |
@ | |
* | |
*.* | |
*.*.* | |
🎠|
import socket | |
import random | |
import argparse | |
import sys | |
from io import BytesIO | |
# Referrer: https://github.com/wuyunfeng/Python-FastCGI-Client | |
PY2 = True if sys.version_info.major == 2 else False |
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
apt-get update && apt-get install gdb
# 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) |