Hi,
weiß einer wie man sshpass:
http://sourceforge.net/projects/sshpass/
für die Fritzbox compiliert?
weiß einer wie man sshpass:
http://sourceforge.net/projects/sshpass/
für die Fritzbox compiliert?
# Paket laden und auspacken, hier im "freetz-Ordner" mit "freetz-trunk"
cd sshpass-1.05
PATH="/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/bin:/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4/mips-unknown-linux-gnu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" CC="/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/bin/mips-linux-uclibc-gcc" CXX="/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/bin/mips-linux-uclibc-g++-wrapper" CFLAGS="-march=24kc -mtune=24kc -msoft-float -Os -pipe -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" CXXFLAGS="-march=24kc -mtune=24kc -msoft-float -Os -pipe -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" LDFLAGS="" PKG_CONFIG_PATH="/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/bin/../lib/pkgconfig" PKG_CONFIG_LIBDIR="/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/bin/../lib/pkgconfig" GLOBAL_LIBDIR=/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/usr/lib ./configure --cache-file=/home/joerg/freetz-trunk/source/target-mips_gcc-4.6.4_uClibc-0.9.32.1/config.cache --target=mips-linux --host=mips-linux --build=x86_64-pc-linux-gnu
make
# oder für ein statisches Binary
make LDFLAGS=-static
# ggf. noch "strippen"
/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/bin/mips-linux-strip sshpass
joerg@joerg-Ubuntu:~/freetz-trunk/sshpass-1.05$ file sshpass
sshpass: ELF 32-bit MSB executable, MIPS, MIPS32 rel2 version 1 (SYSV), statically linked, stripped
joerg@joerg-Ubuntu:~/freetz-trunk/sshpass-1.05$ qemu-mips ./sshpass -h
Usage: sshpass [-f|-d|-p|-e] [-hV] command parameters
-f filename Take password to use from file
-d number Use number as file descriptor for getting password
-p password Provide password as argument (security unwise)
-e Password is passed as env-var "SSHPASS"
With no parameters - password will be taken from stdin
-h Show help (this screen)
-V Print version information
At most one of -f, -d, -p or -e should be used
joerg@joerg-Ubuntu:~/freetz-trunk/sshpass-1.05$
# im Freetzordner habe ich amtterm 1,4 ausgepackt, dann
joerg@joerg-Ubuntu:~/freetz-trunk$ cd amtterm-1.4
joerg@joerg-Ubuntu:~/freetz-trunk/amtterm-1.4$ PATH="/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/bin:/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4/mips-unknown-linux-gnu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" CC="/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/bin/mips-linux-uclibc-gcc" CXX="/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/bin/mips-linux-uclibc-g++-wrapper" CFLAGS="-march=24kc -mtune=24kc -msoft-float -Os -pipe -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" CXXFLAGS="-march=24kc -mtune=24kc -msoft-float -Os -pipe -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" LDFLAGS="-static " PKG_CONFIG_PATH="/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/bin/../lib/pkgconfig" PKG_CONFIG_LIBDIR="/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/bin/../lib/pkgconfig" GLOBAL_LIBDIR=/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/usr/lib make
checking for libdir name ... lib
checking for gtk+-x11-2.0 (using pkg-config) ... no
checking for vte (using pkg-config) ... no
Make.config written, edit if needed
checking for libdir name ... lib
CC amtterm.o
CC redir.o
CC tcp.o
LD amtterm
joerg@joerg-Ubuntu:~/freetz-trunk/amtterm-1.4$
joerg@joerg-Ubuntu:~/freetz-trunk/amtterm-1.4$ file amtterm
amtterm: ELF 32-bit MSB executable, MIPS, MIPS32 rel2 version 1, statically linked, not stripped
joerg@joerg-Ubuntu:~/freetz-trunk/amtterm-1.4$ qemu-mips ./amtterm
This is amtterm, release 1.4, I'll establish
serial-over-lan (sol) connections to your Intel AMT boxes.
usage: amtterm [options] host [port]
options:
-h print this text
-v verbose (default)
-q quiet
-u user username (default: admin)
-p pass password (default: $AMT_PASSWORD)
By default port 16994 is used.
If no password is given amtterm will ask for one.
--
(c) 2007 Gerd Hoffmann <[email protected]>
joerg@joerg-Ubuntu:~/freetz-trunk/amtterm-1.4$