Chinaunix首页 | 论坛 | 博客
  • 博客访问: 222281
  • 博文数量: 48
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 412
  • 用 户 组: 普通用户
  • 注册时间: 2013-04-24 10:27
个人简介

Continuous pursuit technical details

文章分类

全部博文(48)

文章存档

2014年(1)

2013年(47)

发布时间: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.........【阅读全文】

阅读(6484) | 评论(1) | 转发(3)

发布时间: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.........【阅读全文】

阅读(1700) | 评论(0) | 转发(0)

发布时间: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.........【阅读全文】

阅读(1626) | 评论(0) | 转发(0)

发布时间: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.........【阅读全文】

阅读(4136) | 评论(0) | 转发(0)

发布时间: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/.........【阅读全文】

阅读(1237) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册