Index of /~wildcat/doc/bbox2

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory  -  
[TXT]README.html2013-02-07 09:55 5.3K 
[   ]bbox2-binpack-mips-1.0.tar.gz2013-02-07 09:55 1.2M 
[   ]bbox2-binpack-mips-1.1.tar.gz2013-02-07 09:55 1.2M 
[DIR]mirror/2013-02-07 09:56 -  
[DIR]various/2013-02-07 09:56 -  

This pack contain usefull binaries that I use on the bbox2..

Also, some scripts have been made to ease the modifications
to be done when the bbox2 is reset for upgrade.

Finally, a cleanProcess script disable every TR-069 daemon,
so it disable the updates and consumming processes.


HOW TO:
-------

  1. Extract this archive inside a tftproot
  2. Connect to the bbox2 using admin/BGCVDSL2 account

# Connect to the bbox2
Connected to bgc01.
Escape character is '^]'.
login: admin
Password: ********
[admin @ home]$ shell


BusyBox v1.01 (2010.02.10-13:25+0100) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

$ cd /tmp
$ chmod +x updatebin
$ ./updatebin 10.42.1.10
[-] Gathering cleanProcess ...ok
[-] Gathering strace ...ok
[-] Gathering tcpdump ...ok
[-] Gathering busybox ...ok
[-] Gathering iwconfig ...ok
[-] Gathering dropbear ...ok
[-] Gathering dropbearkey ...ok
[-] Gathering iwlist ...ok
[-] Gathering ifrename ...ok
[-] Gathering iwpriv ...ok
[-] Gathering libiw.so.29 ...ok
[-] Gathering libpcap.so.0 ...ok
[-] Updating busybox links: [ [[ acpid addgroup adduser adjtimex ar arp arping ash awk basename bb bbconfig blkid brctl bunzip2 bzcat bzip2 cal cat catv chat chattr chgrp chmod chown chpasswd chpst chroot chrt chvt cksum clear cmp comm cp cpio crond cryptpw cttyhack cut date dd deallocvt delgroup deluser depmod devfsd devmem df dhcprelay diff dirname dmesg dnsd dos2unix dpkg-deb du dumpkmap dumpleases echo ed egrep eject env envdir envuidgid ether-wake expand expr false fbset fdflush fdformat fdisk fgrep find findfs flash_eraseall free freeramdisk fsck fsck.minix ftpd fuser getopt getty grep gunzip gzip halt hd hdparm head hexdump hostid hostname httpd hwclock id ifconfig ifdown ifenslave ifup init insmod install ionice ip ipaddr ipcrm ipcs iplink iproute iprule iptunnel kbd_mode kill killall killall5 klogd last length less linux32 linux64 linuxrc ln loadfont loadkmap logger login logread losetup lpd lpq lpr ls lsattr lsmod lzmacat makedevs makemime man md5sum mdev mesg microcom mkdir mkdosfs mkfifo mkfs.minix mkfs.vfat mknod mkpasswd mkswap mktemp modprobe more mount mountpoint mt mv nameif nc netstat nice nmeter nohup nslookup openvt passwd patch pgrep pidof ping ping6 pipe_progress pivot_root pkill popmaildir poweroff printenv printf ps pscan pwd raidautorun rdate rdev readahead readlink readprofile realpath reboot reformime renice reset resize rm rmdir rmmod route rtcwake run-parts runlevel runsv runsvdir rx script sed sendmail seq setarch setconsole setfont setkeycodes setlogcons setsid setuidgid sh sha1sum sha256sum sha512sum showkey slattach sleep softlimit sort split start-stop-daemon stat strings stty su sum sv svlogd swapoff swapon switch_root sync sysctl syslogd tac tail tar tcpsvd tee telnet telnetd test tftp tftpd time timeout top touch tr traceroute true tty ttysize tunctl udhcpc udhcpd umount uname uncompress unexpand uniq unix2dos unlzma unzip uptime usleep vconfig vi vlock watch watchdog wc wget which who whoami xargs yes zcat zcip
[-] All links updated..
[-] Configuration for dropbear SSH daemon
[-] Generation of SSH Keys...
Will output 1024 bit rsa secret key to '/etc/dropbear/dropbear_rsa_host_key'
Generating key, this may take a while...
Public key portion is:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgwCZwKdqK4n2f979p5zFx2AVByEM0ney/BWfPn4/F+hQN7g5rHsE549SbM5R/bO8yDuAet0gO5wIyOnAjZXkSDaI3NqK8QFv0eLibHSISIMgwAoX7GULQpgFI/kBUEkkyP7aU7HJ+ex02PJ+P7c5EfZISFGTLDNLHVzbpqGOIp7olj3B @openrg
Fingerprint: md5 a6:0f:4b:4a:30:ad:5c:a7:57:ed:45:cc:ef:e7:9e:66
Will output 1024 bit dss secret key to '/etc/dropbear/dropbear_dss_host_key'
Generating key, this may take a while...
Public key portion is:
ssh-dss AAAAB3NzaC1kc3MAAACBALxjiO1LDErwD8SInCPwUaLneTjnrCCoJli4sdu+/oZt24DtqO7CdK6oIQNmJzt6hGul0aAkfSLxttSsES9vvFSpEdMc0TtR1ZfBstNElpieL+xegJlWQ2IQD8sFpZzxUadx0LUnMOCv1yzRZ5tmSYmX/V3p7kANqzFWAWfK/Sl/AAAAFQDadzkYFskYHDVJ6depzhKsUhhvYQAAAIB5Z/6ViFg5KqLVcjgI/h5sMSCFSbUdvfmVXdVz2vTfZE4Cv3nEFHs2DoEfmlpNb40w8U6yoaORC24dvVvCX5ugbACBST0dQfVgXxdQpyX56ztSKQEz222FKfA8rIgg3d1lK/5G0PLOFujBhoNJU6igPflXfAD6kLvBa/a4E1eNMAAAAIArDt+jIBzV4mE5ywj7PNO68YHxi+acDkg8D/wMh6VQtPJRTyVsnkCf6xxocYokwkCgC7yMXpSucH16sP+4Ylqk+6HXmt0IIzXTLsykeDDXpTsPQRIgHngUizOaYtraRL6jM+wafv5bf4rHMAzQLwDEJLAIr0h/5lHLWPnGv7zQ7A== @openrg
Fingerprint: md5 7c:ed:0d:dc:dd:8a:e0:d2:d7:4a:7c:49:14:04:dc:8e
[-] Generating /etc/passwd...ok
[-] Generating /etc/shadow...ok
[-] Changing root password...
Changing password for root
New password:
Retype password:
Password for root changed by root
[-] Touching some needed files: /var/log/lastlog /var/log/wtmp 
[-] done
[-] Creating .profile...ok
[-] Launching dropbear...ok
$ exit
[admin @ home]$ exit

wildcat@dunno ~ $ ssh root@bgc01
root@bgc01's password: 
~ # cleanProcess 
[!] This program will modify some init script of this host and could potentially harm the system !
[!] It will now sleep 10 seconds, if you are SURE to continue, let it sleep and go on with the work...
[!] Otherwise, just CTRL+C NOW!
[-] Copying some etc script that will be modified: /mnt/cramfs//etc/sla_tr69_autom.sh 
/mnt/cramfs//etc/sla_tr98_autom.sh 
/mnt/cramfs//etc/sla_sip_autom.sh 
/mnt/cramfs//etc/process_list.dat 
/mnt/cramfs//etc/prod_autom.sh 
[-] Modifying content of TR69 script...ok
[-] Modifying content of TR98 script...ok
[-] Modifying content of SIPD script...ok
[-] Now, killing useless process..ok
~ # 

--
wildcat