1. 描述 使用scapy库,编写一个DNS Fuzzer工具,并测试。在这之前,先说明一下DNS协议请求包是封装在IP包中的UDP包(有些情况也可使用TCP)中,且UDP的端口为53。进入scapy,查看一下UDP和DNS包的封装情况。
2. 代码示例 代码中,我们需要对输入的IP地址做合法性校验。这需要用到netaddr中的valid_ipv4,可以执行sudo pip install...
分类:
编程语言 时间:
2015-06-08 11:41:33
阅读次数:
352
注:此分类仅供大概参考,没有精雕细琢。有不同意见欢迎评论~利用堆栈:http://oj.leetcode.com/problems/evaluate-reverse-polish-notation/http://oj.leetcode.com/problems/longest-valid-paren...
分类:
其他好文 时间:
2015-06-08 08:23:23
阅读次数:
119
Given a stringsand a dictionary of wordsdict, add spaces insto construct a sentence where each word is a valid dictionary word.Return all such possibl...
分类:
其他好文 时间:
2015-06-08 00:47:03
阅读次数:
159
https://leetcode.com/problems/valid-parentheses/原题:Given a string containing just the characters'(',')','{','}','['and']', determine if the input stri...
分类:
其他好文 时间:
2015-06-07 17:05:11
阅读次数:
97
Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"25525511135",return["255.2...
分类:
其他好文 时间:
2015-06-06 11:49:30
阅读次数:
86
为了在运行中避免可能出现的危险,即当string emuStack为空,emuStack.begin()和emuStack.end()是什么。采取的策略是先将emuStack重置为非空,再进行其他操作,这样就永远不可能碰到底部。
#include
#include
using namespace std;
class Solution {
public:
bool isValid(st...
分类:
其他好文 时间:
2015-06-06 09:18:14
阅读次数:
108
L93: Restore IP Addresses
Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:
Given “25525511135”,return [“255.255.11.135”, “255.2...
分类:
其他好文 时间:
2015-06-05 22:43:06
阅读次数:
154