ll= [1,2,3,4,5]print ll[::-1] ll.reverse() for l in reversed(ll): print l ...
分类:
其他好文 时间:
2016-08-11 18:01:02
阅读次数:
137
十一. awk编程:1. 变量:在awk变量在赋值时即已经完成了定义。变量的类型可以是数字、字符串。未初始化变量的值为0或空白字符串" ",变量的赋值符号列表 = += -= *= /= %= ^= awk '$1 ~ /Tom/ {Wage = $2 * $3; print Wage}' file ...
分类:
系统相关 时间:
2016-08-11 18:00:28
阅读次数:
276
方法1: ZwQuerySystemInformation 这个方法网上一搜一大堆,不举例了 方法2:暴力枚举PID枚举进程,代码: [cpp] view plain copy print? NTSTATUS DriverEntry(PDRIVER_OBJECT pDriverObj, PUNICO ...
分类:
系统相关 时间:
2016-08-11 17:42:08
阅读次数:
271
[cpp] view plain copy print? ULONG GetShadowSsdtCurrentAddresses( PSSDT_ADDRESS AddressInfo, PULONG Length ) { PSYSTEM_SERVICE_TABLE KeServiceDescript ...
分类:
其他好文 时间:
2016-08-11 17:25:26
阅读次数:
210
#!/bin/bash#iptables减缓cc攻击,如果需要修改其值,请修改num这个变量。num=5iplist=`netstat-auptn|grep‘^tcp.*:80‘|egrep-v‘LISTEN|127.0.0.1‘|awk-F[:]‘{print$8}‘|sort|uniq-c|sort-nr|awk‘{if($1>$num){print$3}}‘`foripin$iplistdoiptables-IINPUT-s$ip-ptcp--dport8..
分类:
其他好文 时间:
2016-08-10 23:08:26
阅读次数:
205
打开一个在电脑G盘111文件下的一个文件 #!/usr/bin/perl -w use strict; #!/usr/bin/perl -w use strict; open(IN,"G:/111/mylove.txt"); while($line=<IN>){ print $line;} ...
分类:
其他好文 时间:
2016-08-10 22:34:18
阅读次数:
114
一、节点层(olsnodes) rac1-> olsnodes -help Usage: olsnodes [-n] [-p] [-i] [<node> | -l] [-g] [-v] where -n print node number with the node name -p print pr ...
分类:
其他好文 时间:
2016-08-10 22:33:33
阅读次数:
165
1.更简单的打印语句:print(); 2.使用Java操作符:1.例外的操作符“=”、“==”、“!=”,这些操作符能操作所有的对象。2.String支持+=、+ 3.优先级 4.赋值:直接操作对象内的域容易导致混乱 4(1).方法调用中的别名问题 5.算数操作符:Random rand = ne ...
分类:
编程语言 时间:
2016-08-10 22:31:28
阅读次数:
205
何为定制类? Python的class允许定义许多特殊方法,可以让我们非常方便地生成特定的类。在类中应用或者重写python的特殊方法,得到的类,就是定制类。 大家都知道print的用法。见下面例子 为什么print都能识别出lst和p的数据类型呢? 当我们执行如下代码的时候,就知道为什么了? __ ...
分类:
编程语言 时间:
2016-08-10 19:08:24
阅读次数:
243
#!/usr/bin/env python# -*- coding:utf-8 -*-'''username=input("user:")if username.strip()=='qiuyun': print("welcome")'''names="qiuyun,jack"name2=names. ...
分类:
其他好文 时间:
2016-08-10 17:38:30
阅读次数:
152