存档

‘网站防护’ 分类的存档

linux Shell 编程入门

2010年3月28日     2,823 views 没有评论

来源:网络

Shell 编程
摘要:
本文结合大量实例阐述如何编写一个 shell 脚本。
为什么要进行 shell 编程
在 Linux 系统中,虽然有各种各样的图形化接口工具,但是 shell 仍然是一个非常灵活的工
具。Shell 不仅仅是命令的收集,而且是一门非常棒的编程语言。您可以通过使用 shell 使
大量的任务自动化,shell 特别擅长系统管理任务,尤其适合那些易用性、可维护性和便携
性比效率更重要的任务。
下面,让我们一起来看看 shell 是如何工作的:
建立一个脚本
Linux 中有好多中不同的 shell,但是通常我们使用 bash (bourne again shell) 进行
shell 编程,因为 bash 是免费的并且很容易使用。所以在本文中笔者所提供的脚本都是使用
bash(但是在大多数情况下,这些脚本同样可以在 bash 的大姐,bourne shell 中运行)。
如同其他语言一样,通过我们使用任意一种文字编辑器,比如 nedit、kedit、emacs、vi
等来编写我们的 shell 程序。
程序必须以下面的行开始(必须方在文件的第一行):
#!/bin/sh
符号#!用来告诉系统它后面的参数是用来执行该文件的程序。在这例子中我们使用/bin/sh
来执行程序。
当编辑好脚本时,如果要执行该脚本,还必须使其可执行。要使脚本可执行:
chmod +x filename
然后,您可以通过输入: ./filename 来执行您的脚本。

阅读全文…

分类: 网站防护 标签: ,

[zz]Linux Hardening & Security

2010年3月22日     3,003 views 没有评论

From:http://www.milw0rm.com/papers/346

=======================================
|———–:[INFO]:——————|
|————————————-|
| Title: “Linux Hardening & Security” |
| Author: Krun!x | QK |
| E-Mail: only4lul@gmail.com |
| Home: madspot.org | ljuska.org |
| Date: 2009-06-20 |
=======================================

阅读全文…

分类: 网站防护 标签: , ,

Ubuntu linux命令行简明教程pdf下载

2010年3月8日     2,859 views 没有评论

Ubuntu linux命令行简明教程pdf下载

Ubuntu Linux CLI Guide
Ubuntu linux命令行简明教程
Magi Su
magisu@163.com
November 29, 2006

下载地址:ubuntu linux命令行简明教程

[zz]Avoiding SQL Injection

2010年3月3日     1,377 views 没有评论

From:http://www.milw0rm.org/papers/358
[[[[[]]]]]]]]]]] Avoiding SQL Injection By Moudi – EvilWay Team [[[[[]]]]]]]]]]]

SQL injections are among the flaws the most widespread and dangerous in PHP.
This tutorial will explain clearly the concept of SQL Injection and how to avoid them once and for all.

——————————————————————–

>>>>>>
Summary of tutorial:
I) Presentation of the problem.
=> The variables containing strings
II)Security .
=> Explanation
=> Numeric variables
.Method 1
.Method 2
>>>>>>

阅读全文…

一个简单的伪造SQL注射的文件

2010年3月3日     1,829 views 没有评论

一个简单的伪造SQL注射的文件
欺骗SQL Injection检测的软件,非常简陋。
Demo:http://www.0x50sec.org/aboutus.php?id=1

记录在:logattacker.txt文件下。

会在后台记录恶意攻击的发起者的ip和提交的数据等信息。