Alright so I made a piratebox out of a TP-Link TL-MR3020 a pretty long while ago (possibly 2-3 years ago ;D) and after a discussion with a friend about deaddrops (like USBs) I decided to resurrect it for fun! Problem is, I cannot access it.
I'm pretty sure (when it's working) you do not need to default IP in the address bar to access it like you would before installing openwrt, just any input into any browser will result in a redirect to the imageboard interface, correct? Either way, I have tried all and any input in the address bar to access it.
I tried troubleshooting it myself and came across a post about making an "auto_flash" folder with the openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin file and it seemed to be installing as it kept blinking and resetting and then returned to normal after a couple minutes, although this did not fix it I believe.
I also cannot ssh or telnet into it, here are the results:
After attempting default passwords like "admin", "password", and "passwd", still no access. I did however assume the auto flash with a fresh install would reset any password I might have set previously.(?)
I WOULD try the instructions on the original post on the homepage but it seems I need to be able to access it via ssh or telnet before all else.
Any responses are greatly appreciated as it seems piratebox are becoming an obsolete project! Or at least less discussed (td)
Edit 1: Failsafe results coming soon...
Edit 2:
After following failsafe instructions here are the results:
ifconfig wasn't cooperating (probably because in the video OP was using linux) so I made the IP static to 192.168.1.2 through System Preferences -> Network -> Ethernet
Once I was in I decided to change the password:
then found out I needed to mount_root before doing so:
I interpreted the feedback from mount_root to be errors but after trying passwd again it seemed to work, but indicate that there was no space left. I do not have the USB connected… aaaand I just inserted it while in fail safe, tried passwd again and still says no space left...
Edit 3:
Just inserted the USB and went through the failsafe process again trying to change the password and ran into the "No space left on device" error.
I think I have ran out of experiments to test so here are the "example output for technical questions" info:
I'm pretty sure (when it's working) you do not need to default IP in the address bar to access it like you would before installing openwrt, just any input into any browser will result in a redirect to the imageboard interface, correct? Either way, I have tried all and any input in the address bar to access it.
I tried troubleshooting it myself and came across a post about making an "auto_flash" folder with the openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin file and it seemed to be installing as it kept blinking and resetting and then returned to normal after a couple minutes, although this did not fix it I believe.
I also cannot ssh or telnet into it, here are the results:
Lukes-MacBook-Pro:~ Luke$ ssh root@192.168.1.1 root@192.168.1.1's password: Permission denied, please try again. root@192.168.1.1's password: Permission denied, please try again. root@192.168.1.1's password: Permission denied (publickey,password). Lukes-MacBook-Pro:~ Luke$ telnet 192.168.1.1 Trying 192.168.1.1... telnet: connect to address 192.168.1.1: Connection refused telnet: Unable to connect to remote host Lukes-MacBook-Pro:~ Luke$
After attempting default passwords like "admin", "password", and "passwd", still no access. I did however assume the auto flash with a fresh install would reset any password I might have set previously.(?)
I WOULD try the instructions on the original post on the homepage but it seems I need to be able to access it via ssh or telnet before all else.
Any responses are greatly appreciated as it seems piratebox are becoming an obsolete project! Or at least less discussed (td)
Edit 1: Failsafe results coming soon...
Edit 2:
After following failsafe instructions here are the results:
Last login: Sun Feb 26 18:55:39 on ttys000 Lukes-MacBook-Pro:~ Luke$ ifconfig eth0 192.168.1.2 ifconfig: interface eth0 does not exist Lukes-MacBook-Pro:~ Luke$ ping 192.168.1.1 PING 192.168.1.1 (192.168.1.1): 56 data bytes 64 bytes from 192.168.1.1: icmp_seq=0 ttl=64 time=0.487 ms 64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.310 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.294 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.316 ms ^C --- 192.168.1.1 ping statistics --- 4 packets transmitted, 4 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.294/0.352/0.487/0.078 ms Lukes-MacBook-Pro:~ Luke$ telnet 192.168.1.1 Trying 192.168.1.1... Connected to 192.168.1.1. Escape character is '^]'. === IMPORTANT ============================ Use 'passwd' to set your login password this will disable telnet and enable SSH ------------------------------------------ BusyBox v1.19.4 (2014-04-12 20:08:28 CEST) built-in shell (ash) Enter 'help' for a list of built-in commands. _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ----------------------------------------------------- ATTITUDE ADJUSTMENT (12.09.2, r40431, V0.2) With additional backports from BB [www.friedzombie.com] ----------------------------------------------------- * 1/4 oz Vodka Pour all ingredients into mixing * 1/4 oz Gin tin with ice, strain into glass. * 1/4 oz Amaretto * 1/4 oz Triple sec * 1/4 oz Peach schnapps * 1/4 oz Sour mix * 1 splash Cranberry juice ----------------------------------------------------- root@(none):/# passwd Changing password for root New password: Retype password: passwd: /etc/passwd: Read-only file system passwd: can't update password file /etc/passwd root@(none):/#
ifconfig wasn't cooperating (probably because in the video OP was using linux) so I made the IP static to 192.168.1.2 through System Preferences -> Network -> Ethernet
Once I was in I decided to change the password:
root@(none):/# passwd Changing password for root New password: Retype password: passwd: /etc/passwd: Read-only file system passwd: can't update password file /etc/passwd
then found out I needed to mount_root before doing so:
root@(none):/# mount_root /sbin/mount_root: line 1: pi_include: not found /sbin/mount_root: line 1: pi_include: not found /sbin/mount_root: line 1: set_jffs_mp: not found /sbin/mount_root: line 1: determine_root_device: not found /sbin/mount_root: line 1: can't create /.extroot.md5sum: Read-only file system switching to jffs2 root@(none):/# passwd Changing password for root New password: Retype password: passwd: can't create '/etc/shadow+': No space left on device passwd: can't update password file /etc/shadow root@(none):/#
I interpreted the feedback from mount_root to be errors but after trying passwd again it seemed to work, but indicate that there was no space left. I do not have the USB connected… aaaand I just inserted it while in fail safe, tried passwd again and still says no space left...
Edit 3:
Just inserted the USB and went through the failsafe process again trying to change the password and ran into the "No space left on device" error.
I think I have ran out of experiments to test so here are the "example output for technical questions" info:
root@(none):/# mount rootfs on / type rootfs (rw) /dev/root on /rom type squashfs (ro,relatime) proc on /proc type proc (rw,noatime) sysfs on /sys type sysfs (rw,noatime) tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime) tmpfs on /dev type tmpfs (rw,noatime,size=512k,mode=755) devpts on /dev/pts type devpts (rw,noatime,mode=600) /dev/mtdblock3 on /overlay type jffs2 (rw,noatime) overlayfs:/overlay on / type overlayfs (rw,noatime,lowerdir=/,upperdir=/overlay)
root@(none):/# ls -la /mnt/ drwxr-xr-x 1 root root 0 Jan 1 00:01 . drwxr-xr-x 1 root root 0 Jan 1 00:00 .. drwxr-xr-x 5 root root 0 Jan 1 00:00 ext drwxr-xr-x 2 root root 0 Jan 1 00:00 usb
root@(none):/# ls -la /mnt/usb drwxr-xr-x 2 root root 0 Jan 1 00:00 . drwxr-xr-x 1 root root 0 Jan 1 00:01 .. root@(none):/# ls -la /mnt/usb/PirateBox ls: /mnt/usb/PirateBox: No such file or directory root@(none):/# ls -la /opt/piratebox drwxr-xr-x 2 root root 0 Jan 1 00:10 . drwxr-xr-x 3 root root 0 Jan 1 00:10 ..
root@(none):/# ls -la /opt/piratebox/www ls: /opt/piratebox/www: No such file or directory
root@(none):/# cat /opt/piratebox/version cat: can't open '/opt/piratebox/version': No such file or directory
root@(none):/# cat /etc/config/network config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option ifname 'eth0' option type 'bridge' option proto 'static' option ipaddr '192.168.1.1' option netmask '255.255.255.0' option ip6addr 'fdc0:ffea::1/64' config alias option interface 'lan' option ip6addr 'fdc0:ffea::14e7:5652:c07d:4bb9/64' option proto 'static'
root@(none):/# cat /etc/config/wireless config wifi-device 'radio0' option type 'mac80211' option channel '11' option hwmode '11ng' option macaddr 'e8:94:f6:d9:dd:54' option htmode 'HT20' list ht_capab 'SHORT-GI-20' list ht_capab 'SHORT-GI-40' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' config wifi-iface option device 'radio0' option mode 'ap' option network 'lan' option ssid 'PirateBox - Share Freely' option encryption 'none' option isolate '1'
root@(none):/# ps PID USER VSZ STAT COMMAND 1 root 1636 S {preinit} /bin/sh /etc/preinit 2 root 0 SW [kthreadd] 3 root 0 SW [ksoftirqd/0] 4 root 0 SW [kworker/0:0] 5 root 0 SW [kworker/u:0] 6 root 0 SW< [khelper] 7 root 0 SW [kworker/u:1] 63 root 0 SW [sync_supers] 65 root 0 SW [bdi-default] 67 root 0 SW< [kblockd] 96 root 0 SW [kswapd0] 144 root 0 SW [fsnotify_mark] 173 root 0 SW< [ath79-spi] 184 root 0 SW [mtdblock0] 189 root 0 SW [mtdblock1] 194 root 0 SW [mtdblock2] 199 root 0 SW [mtdblock3] 204 root 0 SW [mtdblock4] 209 root 0 SW [mtdblock5] 250 root 0 SW [kworker/0:1] 365 root 804 S /sbin/hotplug2 --set-worker /lib/hotplug2/worker_for 427 root 1496 S telnetd -l /bin/login.sh 431 root 1488 S lock /tmp/.failsafe 432 root 1500 S ash --login 440 root 1500 S /bin/ash --login 464 root 0 SWN [jffs2_gcd_mtd3] 466 root 0 SW [flush-mtd-unmap] 489 root 1496 R ps