My HTC s740 has an ssh server running on it... - Windows Mobile Development and Hacking General

..or is it just me?
While connected to the internet via the phone's internet sharing:
Code:
eth1 Link encap:Ethernet HWaddr 80:00:60:0F:E8:00
inet addr:192.168.0.102 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::8200:60ff:fe0f:e800/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4166 errors:3310 dropped:0 overruns:0 frame:2
TX packets:4560 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2739298 (2.6 MiB) TX bytes:1315840 (1.2 MiB)
Code:
[jim(at)fedora ~]$ tracepath 74.125.39.147
1: 192.168.0.102 (192.168.0.102) 0.148ms pmtu 1500
^C
[jim(at)fedora ~]$ ssh 192.168.0.102
jim(at)192.168.0.102's password:
After an attitude change and a few attempts:
Code:
root(at)192.168.0.102's password:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
No third party SSH software is running on the phone.
Here's what active refusing is like when attempting to ssh to a computer that does not have an ssh server running:
Code:
[jim(at)fedora ~]$ ssh 192.168.1.65
ssh: connect to host 192.168.1.65 port 22: Connection refused
Can anyone reproduce with their windows mobile phone?
I wonder what potential finding the login info would have.

Lol, 192.168.0.102 is IP of your PC. Phone has probably 192.168.0.1.

Related

Cannot ping HTC Hero

Hi guys,
I'm trying to install debian on my HTC Hero. For this I'd like to have ssh access to my phone. Debugging around I realised I cannot event ping the phone.
Code:
$ ping 192.168.XXX.23
PING 192.168.178.23 (192.168.XXX.23) 56(84) bytes of data.
From 192.168.178.50 icmp_seq=1 Destination Host Unreachable
From 192.168.178.50 icmp_seq=2 Destination Host Unreachable
From 192.168.178.50 icmp_seq=3 Destination Host Unreachable
The phone's connected via WLAN and browsing works. Both my router and the phone tell the IP address I used to ping is the right one.
Any suggestions?
Thanks,
db
Check this out
http :// forum.cyanogenmod.com/topic/11046-cannot-ping-to-htc-aria-incoming-connection-blocked/
Sorry for fudging the URL, it wont allow me to post the link since I'm relatively new

Maybe a way to hack WEP/WPA networks with Hero ?

I think I found a way to ping a host via the shell command. When I type "adb shell ping -a 192.168.1.1" it writes :
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=254 time=1914ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=254 time=908ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=254 time=1020ms
(when I disable the wifi on my phone it starts to write the below)
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
Maybe HTC Hero can be a great WiFi Hacking tool that doesen't require us to format and install Linux.
Also someone may have discovered this a long time ago but I didn't noticed it anywhere so I posted it.
I'm failing to see how you've accomplished anything here except breaking a ping by cutting a network connection?!?

[SOLUTION] Fixing VPN DNS leaks

Hi guys!
I've been using OpenVPN for connecting my phones to my home network.
When I replaced my old phone with Note 4, I noticed that when VPN connectivity is established, DNS is leaking. If you use VPN you can test it here to see if you're also affected by this: https://dnsleaktest.com.
I tried to fix this, but despite all my efforts, DNS traffic just refused to go through the VPN tunnel or DNS not working at all.
Eventually I figured out the series of steps needed and I'd like to share this with you in case someone is having the same problem.
Many thanks to users MaxChinni and Transfusion from this Stack Exchange thread for providing useful information.
Here is how my connection sequence looks like. Needless to say, you need root for this:
1. openvpn --config client.ovpn --daemon
2. iptables -t nat -F OUTPUT
3. iptables -t nat -A OUTPUT -p udp --dport 53 -j DNAT --to-destination 192.168.1.1
(192.168.1.1 is the internal IP address of my router that has DNS server running and intercepting all packets sent to UDP port 53)
4. pkill netd
5. Set DNS:
ndc resolver flushif tun0
ndc resolver flushdefaultif
ndc resolver setifdns tun0 208.67.222.222 208.67.220.220
ndc resolver setdefaultif tun0
Here is the disconnection sequence:
1. pkill openvpn
2. iptables -t nat -F OUTPUT
3. pkill netd
5. Set DNS:
ndc resolver flushif wlan0
ndc resolver flushdefaultif
ndc resolver setifdns wlan0 208.67.222.222 208.67.220.220
ndc resolver setdefaultif wlan0
Note: wlan0 interface is my Wi-Fi. If I'm on 4G, then I use "rmnet_data0" instead.
Attached are the exported Tasker tasks. I'm using some icons from these icon packs, so unless you want to change these tasks to use your own icons, you might want to install them first:
Ipack / Kyo-Tux Aeon HD
Ipack / Crystal Project HD
IMPORTANT:
* OpenVPN profiles are expected to be in "/storage/extSdCard/OpenVPN". Replace this path with your own if you want to use a different location.
* Before running "VPN Toggle" task you will need to set %VPN_PROFILE variable to the file name of OpenVPN profile you woudl like to use, e.g. "client.ovpn".
* I have a check for my home Wi-Fi to prevent starting VPN accidentally in this case, so you might want to change the reg-exp in "VPN Toggle" task that checks %SSID variable. It's currently checking for SSIDs to start with "FBIVan".
* You might also want to add a task that runs on boot to set the widget name to the one you want.
After you import these tasks, just create a widget on your desktop to run "VPN Toggle" task.
Nice, any chance of posting that tasked profile? I would appreciate it
Amd4life said:
Nice, any chance of posting that tasked profile? I would appreciate it
Click to expand...
Click to collapse
Updated the first post with exported tasks.

How to get hostname by pinging a IP Address Java in Android Studio

Hello everyone,
I'm making a IP Scanner app in Android Studio. I have successfully checked if a PC in my LAN is Alive or Dead. But I also want to show the PC name against the IP Address.
I searched on Internet and all the solutions I found just return me the IP Address but the hostname like.
Code:
InetAddress inetAddr;
inetAddr = InetAddress.getByName(host.hostname);
String hostname = inetAddr.getHostName();
String canonicalHostname = inetAddr.getCanonicalHostName();
I also tried to execute ping -a [IP Address] in Android Terminal that also returns me IP Address not Host Name.
But If I do ping -a [My Local IP] than it returns local-host but for all other IP's it doesn't work.
This is also not a DNS issue as someone suggested on Stackoverflow, because on my windows 7 machine I'm able to resolve the hostname using ping -a [IP Address]
Both my windows machine and Android phone getting their IP from DHCP and all other settings like DNS, Gateway are same for both devices.
This was fairly easy in .Net as I have created a IP Scanner in .Net, but in Java I haven't found a solution for this yet.
Hope someone will provide a solution
Thanks

how to change rndis0 ip address 192.168.42.129/24

my android is 7.0 version,usb share to windows network and andriod rndis0 ipaddress is 192.168.42.129.
that can ping now
if I try to use
ifconfig rndis0 192.168.42.121,
then the windows can not ping 192.168.42.121.
I also try to set windows ip address static 192.168.42.x to ping 192.168.42.121,but can not ping,

Categories

Resources