Continuous pursuit technical details
发布时间:2013-12-04 10:04:41
Linux:PF_PACKET 往是专门用于抓包的,往系统网络层注册一个协议。然后所有的往外发的包和进来的包都会调到http://lxr.linux.no/linux+v3.4/net/packet/af_packet.c 这个文件里面 的packet_rcv() 函数,static int packet_rcv(struct sk_buff *skb, struct net.........【阅读全文】
发布时间:2013-12-04 09:49:59
/* * pam_appl.h * * This header file documents the PAM API --- that is, public * interface between the PAM library and an application program that * wishes to use it. * * Last modified: 15-Jan-96 by TYT *//* * Copyright Theodore Ts'o, 1996. All rights reserved. * * Redistribution and.........【阅读全文】
发布时间:2013-12-04 09:46:54
/* A simple Example* Build with "g++ -g -o check_user -lpam -lpam_misc check_user.cc"*//* This program was contributed by Shane Watts [modifications by AGM] You need to add the following (or equivalent) to the /et.........【阅读全文】
发布时间:2013-12-04 09:46:19
/*** FILE:**SECpamLogModule.c**** DESCRIPTION:**A PAModule (PAM) to authenticate, log, and control platform access.****Access can be via telnet, rlogin, ftp, etc.**Refer to http://www.sun.com/software/solaris/pam/ for more info.**** OWNER:**A. R. Liedtke**Paul J. Stankus Feature 72.........【阅读全文】
发布时间:2013-12-03 11:33:25
1. Misuse of "=" and "==" (equals and compare) in if condition2. Use gcc warning to detect potential issues (e.g. too many arguments)3. Buffer overflow, ending of an array, '\0' is needed.4. Memory issue (deallocate, leak)Solution=======================1=====================#! /usr/bin/.........【阅读全文】