Service Verification in Port Scanner

2014-12-04
阅读 3 分钟
3.2k
Recently I'm writting a port scanner and I need to verify if some standard services are running on remote hosts as expected. The verification method is quite simple(but took me a long time), that is, using connect() to that port, then analyze the returned messages. All messages will be returned b...

Install Valgrind on Mac

2014-12-04
阅读 3 分钟
3.7k
For whom may only concern the final solution, please check the last part--The Whole Procedure.

Distinct Subsequences

2014-07-23
阅读 2 分钟
2.1k
Given a string S and a string T, count the number of distinct subsequences of T in S.

Largest Rectangle in Histogram

2014-07-22
阅读 3 分钟
2.5k
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram. Above is a histogram where width of each bar is 1, given height = [2,1,5,6,2,3]. The largest rectangle is shown in the shaded area, which ha...