CSDN博客

img tmd_net

pvpgn安装笔记

发表于2004/9/22 20:52:00  1856人阅读

分类: other

需要的程序
http://pvpgn.cyfxstudios.com/main.html
pvpgn-1.6.5.tar.bz2
PvPGN Support Files 1.0 (nix)
BattleNet Gateway Editor (PC)
w3l.exe
安装说明
http://pvpgn.ez15loan.com/
http://www.lostcity.cn/bbs/index.php?showforum=12
http://www.soarchin.com/
chroot pvpgn
安装路径是/home/pvpgn
建立chroot需要的目录
mkdir -p /chroot/{home,bin,sbin,dev,etc,tmp,usr/lib,usr/libexec,var/run,var/log}
chmod 1777 tmp
truss /hoem/pvpgn/sbin/bnetd
kid# truss /home/pvpgn/sbin/bnetd
mmap(0x0,2048,0x3,0x1000,-1,0x0)                 = 672108544 (0x280f9000)
munmap(0x280f9000,0x800)                         = 0 (0x0)
__sysctl(0xbfbffaf4,0x2,0x280f7fa8,0xbfbffaf0,0x0,0x0) = 0 (0x0)
mmap(0x0,32768,0x3,0x1002,-1,0x0)                = 672108544 (0x280f9000)
geteuid()                                        = 0 (0x0)
getuid()                                         = 0 (0x0)
getegid()                                        = 0 (0x0)
getgid()                                         = 0 (0x0)
open("/etc/libmap.conf",0x0,0666)                ERR#2 'No such file or directory'
open("/var/run/ld-elf.so.hints",0x0,00)          = 3 (0x3)
read(0x3,0xbfbffad4,0x80)                        = 128 (0x80)
lseek(3,0x80,0)                                  = 128 (0x80)
read(0x3,0x280fd000,0x42)                        = 66 (0x42)
close(3)                                         = 0 (0x0)
access("/usr/lib/libm.so.2",0)                   = 0 (0x0)
open("/usr/lib/libm.so.2",0x0,05003512133)       = 3 (0x3)
fstat(3,0xbfbffb1c)                              = 0 (0x0)
read(0x3,0xbfbfeaec,0x1000)                      = 4096 (0x1000)
mmap(0x0,110592,0x5,0x20002,3,0x0)               = 672141312 (0x28101000)
mprotect(0x28117000,0x1000,0x7)                  = 0 (0x0)
mprotect(0x28117000,0x1000,0x5)                  = 0 (0x0)
mmap(0x28118000,16384,0x3,0x12,3,0x16000)        = 672235520 (0x28118000)
close(3)                                         = 0 (0x0)
access("/usr/lib/libz.so.2",0)                   = 0 (0x0)
open("/usr/lib/libz.so.2",0x0,05003512133)       = 3 (0x3)
fstat(3,0xbfbffb1c)                              = 0 (0x0)
read(0x3,0xbfbfeaec,0x1000)                      = 4096 (0x1000)
mmap(0x0,53248,0x5,0x20002,3,0x0)                = 672251904 (0x2811c000)
mprotect(0x28126000,0x1000,0x7)                  = 0 (0x0)
mprotect(0x28126000,0x1000,0x5)                  = 0 (0x0)
mmap(0x28127000,8192,0x3,0x12,3,0xa000)          = 672296960 (0x28127000)
close(3)                                         = 0 (0x0)
access("/usr/lib/libc.so.4",0)                   = 0 (0x0)
open("/usr/lib/libc.so.4",0x0,05003512133)       = 3 (0x3)
fstat(3,0xbfbffb1c)                              = 0 (0x0)
read(0x3,0xbfbfeaec,0x1000)                      = 4096 (0x1000)
mmap(0x0,626688,0x5,0x20002,3,0x0)               = 672305152 (0x28129000)
mprotect(0x281aa000,0x1000,0x7)                  = 0 (0x0)
mprotect(0x281aa000,0x1000,0x5)                  = 0 (0x0)
mmap(0x281ab000,20480,0x3,0x12,3,0x81000)        = 672837632 (0x281ab000)
mmap(0x281b0000,73728,0x3,0x1012,-1,0x0)         = 672858112 (0x281b0000)
close(3)                                         = 0 (0x0)
mmap(0x0,1080,0x3,0x1000,-1,0x0)                 = 672931840 (0x281c2000)
munmap(0x281c2000,0x438)                         = 0 (0x0)
mmap(0x0,2208,0x3,0x1000,-1,0x0)                 = 672931840 (0x281c2000)
munmap(0x281c2000,0x8a0)                         = 0 (0x0)
mmap(0x0,968,0x3,0x1000,-1,0x0)                  = 672931840 (0x281c2000)
munmap(0x281c2000,0x3c8)                         = 0 (0x0)
mmap(0x0,13360,0x3,0x1000,-1,0x0)                = 672931840 (0x281c2000)
munmap(0x281c2000,0x3430)                        = 0 (0x0)
sigaction(SIGILL,0xbfbffb74,0xbfbffb5c)          = 0 (0x0)
sigprocmask(0x1,0x0,0x280f7edc)                  = 0 (0x0)
sigaction(SIGILL,0xbfbffb5c,0x0)                 = 0 (0x0)
sigprocmask(0x1,0x280f7ea0,0xbfbffb9c)           = 0 (0x0)
sigprocmask(0x3,0x280f7eb0,0x0)                  = 0 (0x0)
chdir(0x80b6493)                                 = 0 (0x0)
fork()                                           = 7993 (0x1f39)
exit(0x0)                                       process exit, rval = 0
整理得到
open("/var/run/ld-elf.so.hints",0x0,00)          = 3 (0x3)
open("/usr/lib/libm.so.2",0x0,05003512133)       = 3 (0x3)
open("/usr/lib/libz.so.2",0x0,05003512133)       = 3 (0x3)
open("/usr/lib/libc.so.4",0x0,05003512133)       = 3 (0x3)
得到需要库文件
cp -p /var/run/ld-elf.so.hints /chroot1/var/run/
cp -p /usr/lib/libm.so.2 /chroot/usr/lib/
cp -p /usr/lib/libz.so.2 /chroot/usr/lib/
cp -p /usr/lib/libc.so.4 /chroot/usr/lib/
建立chroot/etc/
cp -p /etc/group /chroot1/etc/
cp -p /etc/master.passwd /chroot1/etc/
cd /chroot1/etc
vi group
vi master.passwd
kid# cat /chroot1/etc/group
games:*:13:
kid# cat /chroot1/etc/master.passwd
games:*:7:13::0:0:Games pseudo-user:/dev/null:/sbin/nologin
pwd_mkdb -d /chroot1/etc/ master.passwd
rm /chroot1/etc/master.passwd
-------------------------------------------------------------------
cp -p /sbin/nologin /chroot1/sbin/
kid# ls -alo /dev/null
crw-rw-rw-  1 root  wheel  -   2,   2 Oct 19 14:43 /dev/null
mknod /chroot1/dev/null c 2 2
kid# ls -alo /chroot1/dev
crw-r--r--   1 root  wheel  -   2,   2 Oct 19 15:30 null
kid#chmod 666 /chroot1/dev/null
kid#ls -alo /chroot1/dev/null
crw-rw-rw-   1 root  wheel  -   2,   2 Oct 19 15:30 null
-------------------------------------------------------------------
cp -Rp /home/pvpgn /chroot1/home/
cd /chroot1/home/pvpgn
chown  -R games:games var
-------------------------------------------------------------------
kid# pwd
/chroot1/home/pvpgn
kid# ls -al
total 14
drwxr-xr-x   7 root   wheel   512 Sep 22 12:45 .
drwxr-xr-x   3 root   wheel   512 Oct 19 15:33 ..
drwxr-xr-x   2 root   wheel   512 Sep 22 12:45 bin
drwxr-xr-x   2 root   wheel  1024 Sep 22 21:37 etc
drwxr-xr-x   4 root   wheel   512 Sep 22 12:45 man
drwxr-xr-x   2 root   wheel   512 Sep 22 12:45 sbin
drwxr-xr-x  14 games  games   512 Sep 22 15:44 var
----------------------------------------------------------------------
test chroot pvpgn
chroot /chroot1/ /home/pvpgn/sbin/bnetd -D
ELF interpreter /usr/libexec/ld-elf.so.1 not found
cp -p /usr/libexec/ld-elf.so.1 /chroot1/usr/libexec/
chroot /chroot1/ /home/pvpgn/sbin/bnetd -D
OK
sockstat |grep 6200
sockstat |grep 6112


0 0

相关博文

我的热门文章

img
取 消
img