Linux Change Password

作者:reistlin 发布时间:July 29, 2010 分类:原创文章 No Comments

linux.jpg

[root@secure ~]# echo "reistlin.com" | passwd --stdin root
Changing password for user root.
passwd: all authentication tokens updated successfully.

VMware ESXi 4.x SSH Enable

作者:reistlin 发布时间:July 21, 2010 分类:原创文章 No Comments

vmware.jpg

1. 登录系统本地 Console 控制台. 按 "Alt+F1"

2. 输入命令(屏幕无显示): unsupported

3. 进入 Tech Support Mode 模式, 输入 Root 密码

4. 编辑 /etc/inetd.conf 文件, 取消 #SSH 注释:

vi  /etc/inetd.conf

5. 重启 inetd 服务:

kill  -HUP `ps  | grep  inetd`

[Perl] subroutine

作者:reistlin 发布时间:July 2, 2010 分类:原创文章 3 Comments

作者: reistlin
来源: http://www.reistlin.com/blog/28
更新时间: 2010.07
版权声明: 原创文章.转载请保留作者信息和原文完整.谢绝任何方式的摘要

perl.jpg

1. Print Array - 打印数组

&print_array ("数组")

#!/usr/bin/perl -w 
 
use strict;
use Data::Dumper;
 
# Debug Switch
my $debug = 0;
 
sub print_array {
        my @array = @_;
        my $index;
        for ($index = 0; $index < @array; $index++) {
                print "$array[$index] \n";
        }
}
 
# 测试
my @test = (1,2,3,4,5,6,7,8,9,0);
&print_array (@test);
#!/usr/bin/perl -w 
 
use strict;
use Data::Dumper;
 
# Debug Switch
my $debug = 0;
 
sub print_array {
        my @array = @_;
        foreach my $tmp (@array) {
                print "$tmp \n";
        }
}
 
# 测试
my @test = (1,2,3,4,5,6,7,8,9,0);
&print_array (@test);

2. Last Digits - 取字符串后"n"位

&last_digits ("字符串", "位数")

#!/usr/bin/perl -w 
 
use strict;
use Data::Dumper;
 
# Debug Switch
my $debug = 0;
 
sub last_digits () {
        my $string = shift;
        my $digits = shift;
        my $length = length ($string);
        if ($length > $digits) {
                print substr ($string, $length - $digits, $digits);
        }
}
 
# 测试
&last_digits ("987654321", "3");

[Perl] birthday password dict v1.0

作者:reistlin 发布时间:June 30, 2010 分类:原创文章 No Comments

作者: reistlin
来源: http://www.reistlin.com/blog/26
更新时间: 2010.06
版权声明: 原创文章.转载请保留作者信息和原文完整.谢绝任何方式的摘要

perl.jpg

[下载] 1950年1月1日 - 2010年12月31日 [passwd.rar]

阅读剩余部分...

Redhat Enterprise Linux AS 关闭 SELinux

作者:reistlin 发布时间:June 25, 2010 分类:原创文章 No Comments

作者: reistlin
来源: http://www.reistlin.com/blog/25
更新时间: 2010.06
版权声明: 原创文章.转载请保留作者信息和原文完整.谢绝任何方式的摘要

redhat.jpg

system-config-securitylevel-tui

selinux.gif

Medusa 配置

作者:reistlin 发布时间:June 25, 2010 分类:原创文章 No Comments

作者: reistlin
来源: http://www.reistlin.com/blog/23
更新时间: 2010.06
版权声明: 原创文章.转载请保留作者信息和原文完整.谢绝任何方式的摘要

1. 安装

安装 libssh2 v1.2.6

wget http://www.libssh2.org/download/libssh2-1.2.6.tar.gz
tar zxvf libssh2-1.2.6.tar.gz
cd libssh2-1.2.6
./configure 
make
make install

安装 medusa v2.0

wget http://www.foofus.net/jmk/tools/medusa-2.0.tar.gz
tar zxvf medusa-2.0.tar.gz 
cd medusa-2.0
./configure --prefix=$HOME/medusa-2.0 --enable-debug=yes --enable-module-afp=yes --enable-module-cvs=yes --enable-module-ftp=yes --enable-module-http=yes --enable-module-imap=yes --enable-module-mssql=yes --enable-module-mysql=yes --enable-module-ncp=yes --enable-module-nntp=yes --enable-module-pcanywhere=yes --enable-module-pop3=yes --enable-module-postgres=yes --enable-module-rexec=yes --enable-module-rlogin=yes --enable-module-rsh=yes --enable-module-smbnt=yes --enable-module-smtp=yes --enable-module-smtp-vrfy=yes --enable-module-snmp=yes --enable-module-ssh=yes --enable-module-svn=yes --enable-module-telnet=yes --enable-module-vmauthd=yes --enable-module-vnc=yes --enable-module-wrapper=yes --enable-module-web-form=yes
make
make install

2. 检查

检查 medusa v2.0 module 模块

secure:/home/reistlin/medusa-2.0/bin# ./medusa -d
Medusa v2.0 [http://www.foofus.net] (C) JoMo-Kun / Foofus Networks <jmk@foofus.net>
 
  Available modules in "." :
 
  Available modules in "/home/reistlin/medusa-2.0/lib/medusa/modules" :
    + cvs.mod : Brute force module for CVS sessions : version 2.0
    + ftp.mod : Brute force module for FTP/FTPS sessions : version 2.0
    + imap.mod : Brute force module for IMAP sessions : version 2.0
    + mysql.mod : Brute force module for MySQL sessions : version 2.0
    + nntp.mod : Brute force module for NNTP sessions : version 2.0
    + pcanywhere.mod : Brute force module for PcAnywhere sessions : version 2.0
    + pop3.mod : Brute force module for POP3 sessions : version 2.0
    + rexec.mod : Brute force module for REXEC sessions : version 2.0
    + rlogin.mod : Brute force module for RLOGIN sessions : version 2.0
    + rsh.mod : Brute force module for RSH sessions : version 2.0
    + smtp-vrfy.mod : Brute force module for enumerating accounts via SMTP VRFY : version 2.0
    + smtp.mod : Brute force module for SMTP Authentication with TLS : version 2.0
    + snmp.mod : Brute force module for SNMP Community Strings : version 2.0
    + ssh.mod : Brute force module for SSH v2 sessions : version 2.0
    + telnet.mod : Brute force module for telnet sessions : version 2.0
    + vmauthd.mod : Brute force module for the VMware Authentication Daemon : version 2.0
    + vnc.mod : Brute force module for VNC sessions : version 2.0
    + wrapper.mod : Generic Wrapper Module : version 2.0

3. 关于Debian 5.0 Medusa v1.4 SSH BUG

Debian 5.0 Medusa v1.4 Install:

apt-get install medusa

Medusa v1.4 SSH.mod BUG:

IMPORTANT: Couldn't load "SSH" [/usr/lib/medusa/modules/SSH.mod: cannot open shared object file: No such file or directory]. Place the module in the medusa directory, set the MEDUSA_MODULE_NAME environment variable or run the configure script again using --with-default-mod-path=[path].
invokeModule failed - see previous errors for an explanation

Linode VPS PPTP VPN 配置

作者:reistlin 发布时间:June 24, 2010 分类:原创文章 2 Comments

作者: reistlin
来源: http://www.reistlin.com/blog/20
更新时间: 2010.04
版权声明: 原创文章.转载请保留作者信息和原文完整.谢绝任何方式的摘要

前言:

中国第一封电子邮件的内容:“跨越长城,走向世界”
(Across the Great Wall We can reach every corner in the world)

因为虚拟化技术的不同,所以不保证所有的VPS均可以配置PPTP VPN,本文是通过在 [Linode] 实际配置PPTP VPN成功后的指导手册。以后我会逐步跟大家一起讨论与学习关于 ESXi / XenServer / Hyper-V 等企业级解决方案。

vmware.gif

介绍:

Linode 是国外VPS (Virtual Private Server 虚拟专用服务器) 顶级服务商,提供以 [Xen virtualization] 虚拟化技术平台为基础的服务。通过使用虚拟化技术 (类似的解决方案还有:[VMWare ESXi] [Citrix XenServer]),将一台高性能的服务器 (裸机,不需要安装额外的操作系统) 虚拟化成若干台独立运行的虚拟服务器。

linode.gif

本文主要是阐述如何在 Linode VPS 上安装 [pptpd] 服务搭建 PPTP VPN。
请注意,Linode VPN 内核版本请选择:2.6.32.12 或更新版本,否则可能会导致配置失败。

阅读剩余部分...

Debian Linux LVM 配置

作者:reistlin 发布时间:June 23, 2010 分类:原创文章 No Comments

作者: reistlin
来源: http://www.reistlin.com/blog/18
更新时间: 2009.03
版权声明: 原创文章.转载请保留作者信息和原文完整.谢绝任何方式的摘要

debian.jpg

1. LVM 介绍:

LVM - Logical Volume Manager 是Linux系统下最强大的磁盘管理技术之一.它将您从不得不思考物理容量中解脱出来.代之以逻辑形式来思考这些容量.当您需要考虑如何替用户数据和系统文件分配空间的时候.LVM可以让您彻底忘记传统的分区做法.

简单地来说.LVM就是将众多物理设备组合成一个大的虚拟设备.用户只需思考如何在虚拟设备上做传统的空间分配策略.而将物理设备的管理交由LVM自己去处理.这个由物理设备组合所成的虚拟设备称为卷组(Volume Group).简称为VG.而用户在卷组VG上所划分的磁盘空间则称为逻辑卷(Logical Volume).简称为LV.而原始物理设备必须经过初始化处理才能加入卷组集合.这种经过特别处理的原始设备或磁盘空间则称为物理卷(Physical Volume).简称为PV.

LVM磁盘空间管理系统允许您在需要的时候重新调整大小.这也就意味着在管理磁盘空间资源方面.您将获得极大程度的自由.基本上这是很有诱惑力的.但您应该留心硬盘出错的情况.如果您没有在LVM管理中为出现这种情况而做好计划.那么您可能会丢失大量数据.

阅读剩余部分...

Linux SSH Log 日志文件

作者:reistlin 发布时间:June 23, 2010 分类:原创文章 No Comments

linux.jpg

作者: reistlin
来源: http://www.reistlin.com/blog/17
更新时间: 2010.06
版权声明: 原创文章.转载请保留作者信息和原文完整.谢绝任何方式的摘要

# Redhat or Fedora Core:

/var/log/secure

# Mandrake, FreeBSD or OpenBSD:

/var/log/auth.log

# SuSE:

/var/log/messages

# Mac OS X (v10.4 or greater):

/private/var/log/asl.log

# Mac OS X (v10.3 or earlier):

/private/var/log/system.log

# Debian:

/var/log/auth.log

[了解这个世界] Computer Hardware Poster 计算机硬件接口

作者:reistlin 发布时间:June 7, 2010 分类:原创文章 No Comments

采编: reistlin
来源: Internet 互联网
更新时间: 2010.06
版权声明: <<了解这个世界>>系列文章.转载请保留作者信息和原文完整.
knowledge.jpg
Computer Hardware Poster 计算机硬件接口大全, 包含从8086计算机到最新的硬件接口类型说明, 规范, 图片 (Updated v1.7 for Sonic840)

阅读剩余部分...

Juniper NetScreen L2TP VPN + RSA SecurID 配置

作者:reistlin 发布时间:June 3, 2010 分类:原创文章 2 Comments

作者: reistlin
来源: http://www.reistlin.com/blog/15
更新时间: 2010.06
版权声明: 原创文章.转载请保留作者信息和原文完整.谢绝任何方式的摘要

rsa.jpgjuniper.jpg

使用Juniper NetScreen防火墙/VPN网关, 结合RSA SecurID双因素认证(电子令牌), 通过L2TP VPN, 支持Windows客户端拨号连接配置手册.

阅读剩余部分...

RSA SecurID Replica Server 6.1 for Windows 无法启动

作者:reistlin 发布时间:June 2, 2010 分类:原创文章 No Comments

作者: reistlin
来源: http://www.reistlin.com/blog/12
更新时间: 2010.06
版权声明: 原创文章.转载请保留作者信息和原文完整.谢绝任何方式的摘要

rsa.jpg

安装RSA SecurID Replica Server 6.1 (Windows Server 2003 SP2, 网卡 x 2), 启动"RSA Authentication Manager Control Panel"控制台, 选择"Start & Stop RSA Authentication Manager Services", 点击"Start All", "RSA Authentication Manager administration daemon"和"RSA Authentication Manager authentication engine"服务无法启动!

阅读剩余部分...

[了解这个世界] Unix/BSD timeline 时间线

作者:reistlin 发布时间:June 2, 2010 分类:原创文章 No Comments

采编: reistlin
来源: Internet 互联网
更新时间: 2010.06
版权声明: <<了解这个世界>>系列文章.转载请保留作者信息和原文完整.
knowledge.jpg
Unix发展, 各个分支, BSD的前世今生, 以及GNU与Linux的渊源 (Updated for 2003)

阅读剩余部分...

[了解这个世界] GNU/Linux Distro timeline 时间线

作者:reistlin 发布时间:June 2, 2010 分类:原创文章 No Comments

采编: reistlin
来源: Internet 互联网
更新时间: 2010.06
版权声明: <<了解这个世界>>系列文章.转载请保留作者信息和原文完整.
knowledge.jpg
GNU/Linux 所有发行版时间线, 各个分支, 以及持续时间 (Updated v10.4 for 2010.04)

阅读剩余部分...

[了解这个世界] Web Trends Map 4 趋势图

作者:reistlin 发布时间:June 1, 2010 分类:原创文章 No Comments

采编: reistlin
来源: Internet 互联网
更新时间: 2010.06
版权声明: <<了解这个世界>>系列文章.转载请保留作者信息和原文完整.
knowledge.jpg
Web Trends Map 4 - Coolest Gift For Geeks 包括全球互联网TOP50公司, 以及热门产品/技术, 发展趋势, 地铁站线路图的形式展现 (Updated for 2009)

阅读剩余部分...

Redhat Enterprise Linux AS 升级 openssh 5.x

作者:reistlin 发布时间:June 1, 2010 分类:原创文章 No Comments

作者: reistlin
来源: http://www.reistlin.com/blog/6
更新时间: 2010.03
版权声明: 原创文章.转载请保留作者信息和原文完整.谢绝任何方式的摘要

redhat.jpgcentos.jpg

适用于 RHEL 4.x / 5.x (Redhat Enterprise Linux AS) 以及 CentOS 4.x / 5.x. 无缝平滑升级 openssh. 可远程操作(不会断开 ssh 连接). 不用修改其他系统配置. 感谢 [BigYong] 指导

1. 下载 [openssh-5.4p1.tar.gz]

wget  http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-5.4p1.tar.gz

阅读剩余部分...

Debian 5.04 第二天

作者:reistlin 发布时间:June 1, 2010 分类:原创文章 No Comments

作者: reistlin
来源: http://www.reistlin.com/blog/5
更新时间: 2010.04
版权声明: 原创文章.转载请保留作者信息和原文完整.谢绝任何方式的摘要

debian.jpg

Debian 5.04 安装常用软件包:

# 编译工具
apt-get install gcc make
 
# 系统工具
apt-get install vim aptitude lrzsz sudo rcconf modconf psmisc sysstat locate tofrodos
 
# 远程管理
apt-get install openssh-server openssh-client openssl
 
# 压缩/解压缩工具
apt-get install bzip2 rar unrar zip unzip 
 
# 网络工具
apt-get install curl dnsutils tcpdump vnstat iperf iftop dnstop snmp ntpdate strace

附注: 持续更新中...

阅读剩余部分...

Debian 5.04 第一天

作者:reistlin 发布时间:June 1, 2010 分类:原创文章 No Comments

作者: reistlin
来源: http://www.reistlin.com/blog/4
更新时间: 2010.04
版权声明: 原创文章.转载请保留作者信息和原文完整.谢绝任何方式的摘要

debian.jpg

Debian 5.04 台湾官方下载 (ISO):

[ftp://ftp.tw.debian.org/debian-cd/5.0.4/i386/iso-cd/debian-504-i386-CD-1.iso]

Debian 5.04 配置基本系统:

IP地址设置: /etc/network/interface

# 动态DHCP获得IP地址
 
# 启动系统激活设备
# Loop回环地址
auto lo
iface lo inet loopback
 
# 启动系统激活设备
# 网卡eth0设置为DHCP类型
auto eth0
iface eth0 inet dhcp

阅读剩余部分...

[Perl] search log v1.0

作者:reistlin 发布时间:June 1, 2010 分类:原创文章 4 Comments

作者: reistlin
来源: http://www.reistlin.com/blog/1
更新时间: 2010.06
版权声明: 原创文章.转载请保留作者信息和原文完整.谢绝任何方式的摘要

perl.jpg

阅读剩余部分...

  1. 1