博客统计信息

用户名:好好做技术
文章数:41
评论数:0
访问量:11613
无忧币:24
博客积分:234
博客等级:2
注册日期:2009-12-27

最新评论

我最近发表的评论

如何学习网络安全.. 回复
对我很有帮助,谢谢了。
2012-03-26 14:46:51
sendto目录现在被移到了这里
%APPDATA%\Microsoft\Windows\SendTo

%APPDATA%是个环境变量,具体来说是在这里:
C:\users\<username>\AppData\Roaming

那我的sendto就躲在了这里:
C:\users\delxu\AppData\Roaming\Microsoft\Windows\SendTo
2012-03-13 15:13:43
方法一:
1)开始->运行,输入sendto
2)在弹出的窗口中,单击右键,选择新建快捷方式。
3)在需要填入项目位置处(即gvim.exe的路径,以及执行参数),输入"C:\Vim\vim72\gvim.exe" -p --remote-tab-silent "%*"注意:需要在路径上加上引号,如默认的安装路径就是在C:\Program
Files下,那么需要在路径上加上引号,即"C:\Program FilesVim\vim72\gvim.exe" -p --remote-tab-silent "%*"4)输入名字,Vim标签页
5)同时选中两个文件,然后右键查看发送到,点击Vim标签页,哈哈,OK啦~~这样的话,既不影响原来的功能,又能实现我们..
入手一个Bluetooth3.0小键盘一个.
手头有小米手机一部...最近安装上了.
方法:
下载hcitool,hidd两个程序,Copy到xbin文件夹内开启权限.
打开外设接连开关.执行:
hcitool scan看能否找到设备.
如果有设备,记录下MAC地址.
执行命令
hidd --server开启服务
hidd --connect <MAC>连接设备

再用Gscript软件做成可执行图标.
2011-06-15 17:24:01
Neighbor Discovery    IPv6 Neighbor Discovery (ND)為一些messages的集合,其功用主要是用來決定在同一個link上相鄰的node.ND取代了在IPv4中的ARP, ICMP, Router Discovery,和ICMP Redirect,並且提供了一些額外的功能.   Neighbor Discovery Message Format      ND訊息採用ICMPv6訊息結構,和ICMPv6 type 133到137. ND訊息包含一個ND訊息標頭,包含一個ICMPv6標頭和ND訊息資料,以及零個或多個ND options.如下圖.        the format of a Neighbor Discovery message    此外ND messages包含五個不同的功能 Ø           Router SolicitationØ           Router AdvertisementØ           Neighbor SolicitationØ           Neighbor AdvertisementØ           Redirect    ND messages options提供一些額外的資訊,包含MAC address, 在此link上的prefix and MTU資訊,以及redirection data.   此外所有的ND messages are sent with a hop limit of 255. 當一個ND message被接受到時,在IPv6封包欄位中的hop limit   欄位會先被檢查,若此值不是255時則丟棄. (但為何設為255,並不是很清楚), 以下便針對此五種messages分別做說明     Neighbor Solicitation        此訊息是被用來發現在相同link上的IPv6 node的link-layer address.它包含了發送者的link-layer address. Typical   Neighbor Solicitation are multicast for address resolution and unicast when the reachability of a neighboring node is beingVerified 舉例說明,當此link為ethernet, in the Ethernet header of the Neighbor Solicitation message Ø           在來源位址欄位為發送者的網路卡的MAC addressØ           對於multicast Neighbor Solicitation而言, 目的位址欄位為Etherner MAC address that corresponds to the solicited-node Multicast address of the target. 對於unicast Neighbor Solicitation而言, 目地位址為香玲node的MAC address    In the IPv6 header of the Neighbor Solicitation message Ø           來源位址為發送者的IPv6 addressØ           對於multicast Neighbor Solicitation而言, 目的位址欄位為solicited-node Multicast address of the target. 對於unicast Neighbor Solicitation而言, 目地位址欄位為unicast or anycast address of targetØ           Hop limit field is set to 255           the format of the Neighbor Solicitation message        Checksum -- 此欄位為ICMPv6的checksum       Reserved -- 此欄位為32bit,保留給未來使用且設為0       Target Address – 128bit,指IP address of the target       Source Link-Layer Address option – 包含發送者的link-layer address      Neighbor Advertisement       此種訊息為IPv6 node當接收到Neighbor Solicitation message時所做的回應. 一個IPv6 node也會發送unsolicited NeighborAdvertisements告知鄰近的node其link-layer address已改變 舉例說明,假設local link為ethernet, in the Ethernet header of the Neighbor Advertisement message Ø           來源位址欄位為發送這網路介面的MAC addressØ           對solicited Neighbor Advertisement而言其目地位址為一開始發送Neighbor Solicitation message的node的unicast MAC address 對an unsolicited Neighbor Advertisement而言其目地位址為 33-33-00-00-00-01, the Ethernet MAC addresscorresponding to the link-Local scope all-nodes multicast address In the IPv6 header of the Neighbor Advertisement message Ø           來源位址為發送者介面的link-local addressØ           對solicited Neighbor Advertisement而言其目地位址為一開始發送Neighbor Solicitation message的node的unicast IPaddress 對an unsolicited Neighbor Advertisement而言其目地位址為link-local scope all-nodes multicast address (FF02::1)Ø           Hop limit field is set to 255     Address Resolution         The address resolution process for IPv6 nodes consists of an exchange of Neighbor Solicitation and Neighbor Advertisementmessages to resolve the link-layer address of the on-link next-hop address for a given destination. The sending host sends amulticast Neighbor Solicitation message on the appropriate interface. The multicast address of the Neighbor Solicitation messageis the solicited-node multicast address derived from the target IP address. The Neighbor Solicitation message includes the link-layeraddress of the sending host in the Source  Link-Layer Address option. For information on how a host determines the next-hopaddress for a destination, see “Host Sending Algorithm. When the target host receives the Neighbor Solicitation message, it updates its own neighbor cache based on the source addressof the Neighbor Solicitation message and the link-layer address in the Source Link-Layer Address option. Next, the target node sendsa unicast Neighbor Advertisement to the Neighbor Solicitation sender. The Neighbor Advertisement includes the Target Link-LayerAddress option. After receiving the Neighbor Advertisement from the target, the sending host updates its neighbor cache with an entryfor the target based upon the information in the Target Link-Layer Address option. At this point, unicast IPv6 traffic between the sendinghost and the target of the Neighbor Solicitation can be sent.  Address Resolution Example :Host A has an Ethernet MAC address of 00-AA-00-11-11-11 and a corresponding link-local address of FE80::2AA:FF:FE11:1111. Host B has an Ethernet MAC address of 00-AA-00-22-22-22 and a corresponding link-local address of FE80::2AA:FF:FE22:2222. Tosend a packet to Host B, Host A must use address resolution to resolve Host B’s link-layer address.Based on Host B’s IP address,Host A sends a solicited -node multicast Neighbor Solicitation to the address of FF02::1:FF22:2222.  Host B, having registered the solicited-node multicast address of 33-33-FF-22-22-22 with its Ethernet adapter, receives and processesthe Neighbor Solicitation. Host B responds with a unicast Neighbor Advertisement message. 
2011-03-10 13:47:05
  字符串数组元素赋值:@tmp=qw(aaa bbb kkk 9000);相当于@tmp= (“aaa”, “bbb”,“kkk”,“9000);


    字符串比较,绝不能用==  ,要用eq
[macg@localhost perltest]$ vi tip.pl

#!/usr/bin/perl
print"input:";
while(chomp($input=<>)) {
print"your input is $input \n";
if ($input=="q") { print "choose q \n";last;}
  elsif ($input=='n') {print "input is $input \n";next;}
      else { print "input ok,try again\n";}
prin..
2010-10-09 15:20:46
  一、介绍  PPP(Point-to-Point Protocol点到点协议)是为在同等单元之间传输数据包这样的简单链路设计的链路层协议。这种链路提供全双工操作,并按照顺序传递数据包。设计目的主要是用来通过拨号或专线方式建立点对点连接发送数据,使其成为各种主机、网桥和路由器之间简单连接的一种共通的解决方案。
  LCP负责创建,维护或终止一次物理连接。NCP是一族协议,负责解决物理连接上运行什么网络协议,以及解决上层网络协议发生的问题。  下面介绍PPP链路建立的过程:   PPP链路状态机如图1所示。一个典型的链路建立过..
2010-09-30 11:18:08
 维多利亚宣言  1992年WHO发表的《维多利亚宣言》  健康是金,如果一个人失去了健康,那么,他原来所拥有的和正在创造即将拥有的统统为零!预防是健康的保证。据世界卫生组织的调查,导致疾病的因素中,内因15 %,社会因素10%,医疗因素8 % ,气候地理因素7 % ,个人生活方式的因素却占据了60 % ,所以,世界卫生组织于1992年发表了著名的《维多利亚宣言》,提出了健康的四大基石----------  一、合理膳食  概括为“五个数字”:  1、 每天一杯牛奶,确保250毫克的钙;  2 、每天250到350毫克的碳水化合物,相当于6到8两..
2010-09-19 14:17:23
转载自:http://blog.donews.com/zyqin/archive/2008/09/01/1341486.aspx


RADIUS,远程用户拨号认证系统,是Remote Authentication Dial-In User Service的缩写,它是一套许多Internet服务提供商(ISP)采用的一套认证和记账系统。

当你拨入ISP的时候,你必须提供用户名和密码。这些信息被传送给RADIUS服务器,如果检查通过,你将获得访问ISP系统的授权。

尽管不是官方的标准,但是RADIUS一直被IETF工作组维护着。


参考文档:

RADIUS

开放分类: 协议、RFC、UDP
RADIUS:Remote Authentication Dial In User Service,远程用户..
类别:Others|阅读(492)|回复(0)|(0)阅读全文>>
2010-09-01 10:58:51
HPING参数,可以用HPING -H来看



-H --HELP 显示帮助



-v -VERSION 版本信息



-c --count count 发送数据包的次数 关于countreached_timeout 可以在hping2.h里编辑



-i --interval 包发送间隔时间(单位是毫秒) 缺省时间是1秒,此功能在增加传输率上很重要,在idle/spoofing扫描时此功能也会被用到,可以参考hping-howto获得更多信息



-fast 每秒发10个数据包,似乎可用作dos攻击



-n -nmeric 数字输出,象征性输出主机地址



-q -quiet 退出.什么都不会输出,除了开始结诉时间



-I --interface interf..
2010-08-26 09:22:39
#!/bin/sh

echo "ENTER:"

read key

cat tt|awk '{if(prev=="$key"print;prev=$1}



以上内容

如果我输:2002/01/01

没结果输出!

又错了?



 valentine 回复于:2002-03-23 09:27:02

[这个贴子最后由valentine在 2002/10/22 08:46am 编辑]



你的想法不错,但awk中不能如此使用变量,可改成以下形式,便可以了。

echo "enter:"

read key

export key

cat filename|awk '{if(prev==ENVIRON["key"])print;prev=$1}'



这样也可以:

echo "enter:..
类别:Others|阅读(113)|回复(0)|(0)阅读全文>>
 <<   1   2   3   4   5   >>   页数 ( 1/5 )

我的技术圈(0)

更多>>