sort
各种排序算法,下标都从1开始。sort_test.c是用来测试的。
void heap_sort(int *array,int size)
void create_min_heap(int *array,int size)
void adjust_min_heap(int *array,int start,int size)
void bubble_sort(int *array,int size)
void select_sort(int *array,int size)
void quick_sort(int *array,int size)
void unrec_quick_sort(int *array, int size)
void insert_sort(int *array,int low,int high)
int bucket_sort(int *array,int size,int max_value)
int max_k_heap(int *array,int size,int k,int *k_array)
int max_k_select(int *array,int size,int k,int *k_array)
void find_max_min(int *array,int size,int *max,int *min)
int find_max_k(int *array,int low,int high,int k) (Some sort functions."sort_test.c" is used to test.
void heap_sort(int*array,int size)
void create_min_heap(int*array,int size)
void adjust_min_heap(int*array,int start,int size)
void bubble_sort(int*array,int size)
void select_sort(int*array,int size)
void quick_sort(int*array,int size)
void unrec_quick_sort(int*array, int size)
void insert_sort(int*array,int low,int high)
int bucket_sort(int*array,int size,int max_value)
int max_k_heap(int*array,int size,int k,int*k_array)
int max_k_select(int*array,int size,int k,int*k_array)
void find_max_min(int*array,int size,int*max,int*min)
int find_max_k(int*array,int low,int high,int k) )
- 2013-08-30 22:05:58下载
- 积分:1
DNS_Redirect
驱动级域名劫持
就是访问A.com转到b.com,当然如果改成访问A就丢包,那就变成拦截指定网站了。首先用抓包工具发现,访问某网站时,(如果本地没有该网站的DNS缓存)首先会发DNS查询包(UDP),然后会与该网站建立连接,然后,发http请求包。
观察包内容,需要把发出的包的目标改成我们的目标,然后把响应的包中我们改过的东西改回来,就是欺上瞒下。代码不多,重点是演示了如何获取TCP与UDP的接收到包的内容。仅适用于XP:
bin会将www.baidu.com劫持到ip138.com(Drive level domain hijacking is to visit A.com to b.com, of course, if A is dropping into access, it becomes blocked designated site. First discovered by capturing tool, visit a website, (if there is no local DNS cache of the site) will first send a DNS query packets (UDP), then establish a connection with the site, and then send http request packet. Observe the contents of the package, we need to change the target packet sent our goal, then put the package in response to the things we turn to come back, that is, superiors and subordinates. Code much focus is to demonstrate how to get the contents of TCP and UDP packets received. Only applies to XP: bin will www.baidu.com hijacked to ip138.com)
- 2014-02-13 13:30:04下载
- 积分:1