C63/C63S AMG
Sponsored by:
Sponsored by:

Dealer Mode

Thread Tools
 
Search this Thread
 
Rate Thread
 
Old 01-30-2018, 06:50 AM
  #51  
Junior Member
 
Davesc63's Avatar
 
Join Date: Mar 2016
Location: Brisbane
Posts: 41
Received 12 Likes on 7 Posts
2010 C63, 2016 C63s, 2018 GLC63s
Originally Posted by Rakete99
My library works. Thanks mozy!
Congrats mate! - Welcome to an elite club :p
If anyone works out how to have live, direct CLI access I'd be keen to know how you achieve it.

I dumped the HDD to the SD card and went through files upon files. You can join the WLAN of the car but there are basic packet filter rules that prevent communication from different networks. I've toyed with the idea of modifying the files but my interest levels dropped.

A few proof snippets:
Originally Posted by QNX HU5
local_if = "lo0"
wlan_if = "uap0"
most_if = "mep0"
diag_if = "sta0"
diag_if2 = "en5"
kom_if = "kom0"
https_kom_port= "443"
broadcast = "255.255.255.255/32"
multicast = "224/4"
fuAddressMost = "192.168.222.2"
fuAddressMostAlias = "192.168.222.4"
huAddressMost = "192.168.222.1"
huAddressMostAlias = "192.168.222.3"
huWlanAddress = "192.168.220.1"
passAddress = "192.168.220.2"
huWlanAddressAlias = "192.168.220.3"
loAddress = "127.0.0.1"
wlannetwork = "192.168.220.0/24"
mostnetwork = "192.168.222.0/24"
wlanbroadcast = "192.168.220.255/32"

Originally Posted by QNX HU5
# This table contains the destination addresses that should not be
# reachable for incoming packets from WLAN clients which want to communicate
# with the Internet.
#
# Remark: This table should only be used in filter rules that are used for
# assuring that WLAN clients can reach the Internet (but nothing else).
# It is not appropriate for assuring that remote controls can reach the HU
# or for blocking the communication between WLAN clients.
#
$validForHUOnly table <UnallowedForWLANClients> const { $loAddress, $huWlanAddress, $huWlanAddressAlias, $mostnetwork } #only on HU
There are so many more rules but you get the idea. If you join the cars WLAN they only want you to get internet access and nothing else.
Telnet/23 runs on the HU but the packet filter rules don't allow a WLAN client to communicate on that port.
sshd/22 does not run at all on the HU

My next magic trick was to edit the shadow file to remove the root password if telnet became accessible, but again... lost interest in pursuing much more down this path.

The other cool 'nerd' thing I found was the PSK which made me giggle. If you understand what this is for hopefully you'll giggle too:
Originally Posted by QNX HU5
Ike, please send more tanks /Patton

Also, "cocoh" seems more interested in PM'ing me asking questions rather than proving they've done anything, so watch out
The following users liked this post:
Rakete99 (01-31-2018)
Old 01-30-2018, 07:10 AM
  #52  
Junior Member
 
cocoh's Avatar
 
Join Date: Apr 2008
Posts: 26
Received 1 Like on 1 Post
W203
I will post here soon some pictures with live system.. but I WILL NOT SHARE HOW I do it...
Old 01-30-2018, 05:39 PM
  #53  
MBWorld Fanatic!
 
auditoamg's Avatar
 
Join Date: Nov 2015
Posts: 1,095
Received 52 Likes on 49 Posts
C63s
Originally Posted by cocoh
I will post here soon some pictures with live system.. but I WILL NOT SHARE HOW I do it...
Helping each other.....
Way to go.
The following users liked this post:
Wexlax732 (02-08-2020)
Old 01-30-2018, 07:50 PM
  #54  
Newbie
 
scrapaholic's Avatar
 
Join Date: Oct 2017
Posts: 9
Received 2 Likes on 2 Posts
AMG C63s
+1. Golden rule that I teach my children. Treat people the way you want to be treated. Taking and not giving yields negative results all around? Karma
The following users liked this post:
Wexlax732 (02-08-2020)
Old 01-30-2018, 08:24 PM
  #55  
MBWorld Fanatic!
 
auditoamg's Avatar
 
Join Date: Nov 2015
Posts: 1,095
Received 52 Likes on 49 Posts
C63s
Originally Posted by scrapaholic
+1. Golden rule that I teach my children. Treat people the way you want to be treated. Taking and not giving yields negative results all around? Karma
+2
The following users liked this post:
Wexlax732 (02-08-2020)
Old 01-31-2018, 12:54 AM
  #56  
Junior Member
 
Davesc63's Avatar
 
Join Date: Mar 2016
Location: Brisbane
Posts: 41
Received 12 Likes on 7 Posts
2010 C63, 2016 C63s, 2018 GLC63s
Originally Posted by cocoh
I will post here soon some pictures with live system.. but I WILL NOT SHARE HOW I do it...
I figured you weren't going to share, nor you had any actual valuable information to share when you wouldn't answer my questions or write up a step-by-step on what you did.

It was even more suspect when after I shared my bash scripts, srm.cfg and modified Engineering Mode persistance files, you still didn't want to write something up... Always asking for whatsapp or skype... no, just no!

The next big red flag was asking me if I knew how to/could write you a bash script to copy the filesystem... lol Not something I'd expect to hear from someone who apparently knows how to obtain live CLI access to the QNX system.

Now I guess the final confirmation is this admission!! haha
The following 3 users liked this post by Davesc63:
FLC63s (07-05-2019), KJ (01-31-2018), Rakete99 (01-31-2018)
Old 01-31-2018, 10:30 AM
  #57  
MBWorld Fanatic!
 
AlexZTuned's Avatar
 
Join Date: Dec 2012
Location: Austin, TX
Posts: 1,537
Received 368 Likes on 262 Posts
2017 Porsche 911 C4
Originally Posted by cocoh
I will post here soon some pictures with live system.. but I WILL NOT SHARE HOW I do it...
Old 01-31-2018, 10:56 PM
  #58  
MBWorld Fanatic!
 
auditoamg's Avatar
 
Join Date: Nov 2015
Posts: 1,095
Received 52 Likes on 49 Posts
C63s
Originally Posted by AlexZTuned
Yup...
And it's been how long since the promised pictures?
Old 02-06-2018, 09:45 AM
  #59  
Junior Member
 
cocoh's Avatar
 
Join Date: Apr 2008
Posts: 26
Received 1 Like on 1 Post
W203
Hello guys..
@@Davesc63.. Please check PM..
About pictures soon.. a little busy...
what you wish to see guys?

BR
Old 02-09-2018, 11:11 PM
  #60  
Member
 
vladimir.cdi's Avatar
 
Join Date: Sep 2013
Posts: 88
Likes: 0
Received 25 Likes on 18 Posts
E43AMG
Originally Posted by cocoh
Hello guys..
@@Davesc63.. Please check PM..
About pictures soon.. a little busy...
what you wish to see guys?

BR
access to the file system of the HU via EtherNet/Wlan
Old 03-24-2018, 07:30 PM
  #61  
Newbie
 
Do Rin's Avatar
 
Join Date: Mar 2018
Posts: 3
Likes: 0
Received 1 Like on 1 Post
C117
Lightbulb

I hope somebody reads me and I can survive this post.

I made some progress on my C117 and frankly I'm pretty much surprised. I can see/change many options I wouldn't expect I could, among all of them there is CarPlay and MirrorLink.

I could change the splash screen for the AMG one, even the driving type to AMG which mean I have a different Dynamic Select menu - I've used for the very first time the Sport+ Drive's mode + the Sport ABS's mode.




Now I'm stuck with enabling CarPlay and MirrorLink - tomorrow I'll keep trying.

And the best, today I've done on a FB group for MB owners and a guy had the luck to activate MirrorLink and Dynamic Select successfully.
The following users liked this post:
NYCSoiL (03-24-2018)
Old 03-25-2018, 09:14 AM
  #62  
MBWorld Fanatic!
 
AlexZTuned's Avatar
 
Join Date: Dec 2012
Location: Austin, TX
Posts: 1,537
Received 368 Likes on 262 Posts
2017 Porsche 911 C4
Are you saying that it’s possible to enable CarPlay? And what exactly is different on the dynamic select options? I’m not sure I understand... ABS Sport? As in, a recalibrated ABS?
Old 03-25-2018, 09:40 AM
  #63  
Member
 
vladimir.cdi's Avatar
 
Join Date: Sep 2013
Posts: 88
Likes: 0
Received 25 Likes on 18 Posts
E43AMG
Originally Posted by AlexZTuned
Are you saying that it’s possible to enable CarPlay? And what exactly is different on the dynamic select options? I’m not sure I understand... ABS Sport? As in, a recalibrated ABS?
no, this is not possible even with StarDiagnose official way

for Cars with Audio20 production before 07/2017 CarPlay it is possible with OBD2 plug
for cars with Audio20 production after 07/2017 CarPlay it is not possible with OBD2 at all but possible with wiring harness temporary installed in between Audio20 and car, then removed after activation
do ebay search for "Mercedes CarPlay activation OBD" and you will find
The following 2 users liked this post by vladimir.cdi:
cocoh (03-29-2018), thadoggfatha (12-16-2018)
Old 07-09-2018, 01:46 AM
  #64  
Member
 
mozy's Avatar
 
Join Date: May 2015
Posts: 76
Likes: 0
Received 27 Likes on 7 Posts
C63P
Hey folks, been a while. I decided to check back in and see what's going on here. Good to hear more people still playing.
I saw some peeps seeking "live CLI access" (telnet/ssh/shell/etc), got bored last weekend and decided to try it out.

Shout out to Davesc63 for work he's put in! I'm sure he's already figured out what I'm posting here Sorry I missed your PM's dude!


Sorry for the crap quality. But anyway, that's a video of some live stuff being done on the HU while connected to the in-car WiFi, described as such:
  1. Once again, using the previously discussed QNX library trick, I run a shell script when an SD card is inserted. More details below.
  2. This shell script disables the Packet Filter and
  3. Starts netcat on port 55559 which pipes data to and from /bin/ksh (netcat for QNX/i386 can be found here ftp://ftp.netbsd.org/pub/pkgsrc/pack...at-1.10nb3.tgz)
  4. Once in port 55559 I run "$(telnetd)" which.... starts the telnet daemon in the current session. Technically, we have a root shell here. Will explain more later.
  5. Login as the hmi user (l/p: hmi/hmi ... check /etc/passwd, short of root, all user passwords are the login name!)
  6. Run dispmsg to show a popup with some text.
  7. I then run the "Keyboard" program (already on the HU) to show that you can control the HU with your "remote" keyboard if you so desire. This one is a little wonky and sometimes freezes up like seen in the video so I had to kill it off. Sorry for the crap demo, I was trying stuff on the fly and didn't plan it too well. Lets just reiterate you can dicate the input on the HU from a remote keyboard.
  8. Finally, I start the famous graphics demo glxgears... 59FPS! Not bad!
Some finer points:
  • You'll still need to build/find/steal/etc the QNX library module to load the shell script (see below) on your SD card. You'll need to have the nc binary on the SD card to be copied over to the HU.
  • You might say "Why do you run telnetd and login as the HMI user when you seem to already have a root shell?" Well, something weird is going on with the tty when starting a netcat tunnel and piping ksh through it. I'm guessing some environment args aren't properly set or a virtual tty isn't allocated to ksh or something. I don't know QNX very well. I already have root via other methods (not "live" per se) so if I really need to get at a file or something, I can do it. The "hmi" user seems to have enough permissions for my needs and I don't quite feel like figuring out a cleaner way of starting a good root shell tunnel. Maybe if I get bored again.
Here's what you need in your shell script to accomplish the above (I use this as the basis for most my scripts):
#!/bin/ksh

HOME=/tmp/shell
PATH=/boot/bin:/bin:/opt/sys/bin:.
LD_LIBRARY_PATH=/boot/lib:/lib:/opt/sys/lib:/usr/lib:.

TMPDIR=/tmp/root
TERM=vt100
SHELL=/bin/sh
SYSNAME=nto
QNX_VERSION=qnx650
HOSTNAME=intel
PROCESSOR=x86
CPU_ARCH=x86
SAMPLE=C2
UNIT_TYPE=HU
CAR_SERIES=W205export PATH LD_LIBRARY_PATH HOME TMPDIR TERM SHELL SYSNAME QNX_VERSION HOSTNAME PROCESSOR CPU_ARCH SAMPLE UNIT_TYPE CAR_SERIES DOOMWADDIR

dispmsg --timeout 3 --popup "Disabling PF..." &

# Disable the Packet Filter
pfctl -d

# Copy netcat to the HU and make executable
cp /fs/sdb0/nc /tmp/root/nc
chown root:root /tmp/root/nc
chmod 4755 /tmp/root/nc
chmod +x /tmp/root/nc

dispmsg --timeout 1 --popup "Launching nc..." &

# Start netcat and listen on the port, execute ksh and pipe to that port
/tmp/root/nc -l -p 55559 -e /bin/ksh &
There you go. If you can follow the explanation above the example shell script, you should be able to "telnet" into the HU with the hmi user while connected to the in-car WiFi. Not great, but it works 100% of the time.

Now, for some more fun stuff...
I figured out a way to get a telnet session without any apparently "difficult to come by" QNX libraries or funky shell scripts... sorry for the **** video. It really is hard to record and type with one hand. No jokes plz. Also I realized my IP address mistake but didn't want to re-record the video.


What's happening here is upon cold boot of the HU the system enumerates all attached USB devices and if it finds one who's chipset matches the expected pattern it will create a new non-routeable network interface (typically "en5") with an IP of 192.168.168.168. The packet filtering system does not appear to account for this network interface so thats why you can get to telnet and various other open ports (nmap!). I deduced this info and repeatable process after scouring some system config files on the HU drive.

What you need:
  1. A USB Ethernet adapter with one of the following chipsets: RTL8150, Pegasus, ASIX (I have this chip, model# 88772 in an AirLink 101 USB 2.0 to Ethernet), SMSC, MCS7830
  2. Ethernet cable
  3. Laptop with an Ethernet port.
What you need to do:
  1. Turn on the HU or your car. "Reboot" your HU with the eject button trick and leave it off. OFF.
  2. Configure your laptop's eth port to have 192.168.192.167 as the IP address, e.g. on Linux: ip addr add 192.168.192.167/16 dev eth0 ; ip link set eth0 up​​​​​​
  3. Plug the USB Eth adapter into the 2nd USB port inside the arm-wrest. I don't know why but the 1st port doesn't work right... would love someone to confirm/deny.
  4. Start pinging 192.168.192.168 from your laptop.
  5. Fire up the HU by pressing down on the "volume" button.
  6. Watch for ping replies. Once you see a reply continue.
  7. Telnet to port 2021 of 192.168.192.168. I derp'd in the video and was trying to connect to the wrong IP. Anyway, this is a port that has some neat "comms" debug output.
  8. Within a few seconds you should be able to telnet to 192.168.192.168 (obvs port 23) and login as usual (e.g. l/p == hmi/hmi)
The above steps are what I've seen in my experience and may not have to be followed to the exact step. But I've noticed, for some reason, that if you don't start the ping and connect to port 2021 (or any other open network port) before trying to telnet in, you'll get a message something to the effect of "no ports available" when you try to get to telnet. Something funky is going on with sockets at that point.
There's a lot more stuff that I've found but there's just not enough time in the day to play with and talk about all the neat and interesting stuff here. My initial goal many years back was to figure out how the COM/KOM and PASS units works (the thing that gets you online) but I've not been able to figure that out yet other than the fact that the embedded SIM for my car is a VZW Mobile2Mobile service.

Well, hope you enjoyed this as much as I did! And please, for the love of Chrysler, do NOT private message me asking how to update maps, recode your car for Chine/EU/JP/etc or how to do variant coding for things like blinkers. I have no idea how to do this.

Last edited by mozy; 07-09-2018 at 12:02 PM. Reason: detail on eth
The following 2 users liked this post by mozy:
imantr (07-06-2021), trigital (07-07-2019)
Old 07-09-2018, 04:22 AM
  #65  
Junior Member
 
Davesc63's Avatar
 
Join Date: Mar 2016
Location: Brisbane
Posts: 41
Received 12 Likes on 7 Posts
2010 C63, 2016 C63s, 2018 GLC63s
Originally Posted by mozy
Epic Post
This is just an epic post... but you are a very bad man!
I gave up on playing around with the PF files and I also had a go at the USB-to-Ethernet adapter however I didn't get too far. You've definitely filled in heaps of the gaps!

All I really wanted to do was unlock VIM via file modification and this live access may help get that done. I'm guessing it's pretty easy, if you've seen the encrypted files for DVDinMotion... there's a reason why you'd encrypt it... to safeguard your IP / hide how easy it is to rip people off $150+!
Old 07-09-2018, 11:22 AM
  #66  
Newbie
 
stealth98's Avatar
 
Join Date: Feb 2018
Posts: 1
Likes: 0
Received 0 Likes on 0 Posts
BMW
@mozy: great job.
Can someone send dispmsg via PM please. Thanks
Old 07-09-2018, 01:25 PM
  #67  
MBWorld Fanatic!
 
AlexZTuned's Avatar
 
Join Date: Dec 2012
Location: Austin, TX
Posts: 1,537
Received 368 Likes on 262 Posts
2017 Porsche 911 C4
So for the non-computer techs, are there any stand out features or benefits to accessing this? Enabling video while driving and that’s it so far?

I’d love to see some stuff around the car telemetrics (hp/torque gauges, g-force, throttle/brake position). Adjusting the hp/tq value display limits for folks that are tuned would be really cool. I know it’s been done with the M3/M4 guys.
Old 07-09-2018, 04:25 PM
  #68  
Member
 
mozy's Avatar
 
Join Date: May 2015
Posts: 76
Likes: 0
Received 27 Likes on 7 Posts
C63P
Originally Posted by Davesc63
This is just an epic post... but you are a very bad man!
Thanks for the compliment. I'm not sure I understand that last part, was it meant seriously or in jest? I'm confused...

Originally Posted by Davesc63
I gave up on playing around with the PF files and I also had a go at the USB-to-Ethernet adapter however I didn't get too far. You've definitely filled in heaps of the gaps!

All I really wanted to do was unlock VIM via file modification and this live access may help get that done. I'm guessing it's pretty easy, if you've seen the encrypted files for DVDinMotion... there's a reason why you'd encrypt it... to safeguard your IP / hide how easy it is to rip people off $150+!
I too am guessing unlocking VIM is possible with the access we have now... I know I've said this before but I'm only interested in the technical challenge here. I have no desire to figure out how to do VIM or worse yet profit from it. Yeah the companies providing the "service" are charging way too much but they gotta get paid for their R&D too... I guess.

Originally Posted by AlexZTuned
So for the non-computer techs, are there any stand out features or benefits to accessing this? Enabling video while driving and that’s it so far?

I’d love to see some stuff around the car telemetrics (hp/torque gauges, g-force, throttle/brake position). Adjusting the hp/tq value display limits for folks that are tuned would be really cool. I know it’s been done with the M3/M4 guys.
If by "this" you mean the internals of the Head Unit... no not really much benefit for most people. I mean its just another computer in your car.
My car doesn't have the HP/TQ figure screen since its a '15 but I'm guessing it might be possible to make adjustments to the numbers. Someone with a model year that has this display would need to try.

It would be super cool to see stuff like G's and throttle/brake but if it doesn't already exist from the factory it would be some miracle to come up with this. The HU doescommunicate with the CAN network so theoretically it might be possible but that's a challenge I'll leave to the uber-hackers out there.

Last edited by mozy; 07-09-2018 at 04:38 PM.
Old 07-09-2018, 06:41 PM
  #69  
KJ
Super Member
 
KJ's Avatar
 
Join Date: Nov 2009
Posts: 601
Received 113 Likes on 74 Posts
2020 GLE 53 AMG
Originally Posted by mozy
Thanks for the compliment. I'm not sure I understand that last part, was it meant seriously or in jest? I'm confused...
He meant Bad = Very Good
Old 07-10-2018, 06:06 AM
  #70  
Junior Member
 
Davesc63's Avatar
 
Join Date: Mar 2016
Location: Brisbane
Posts: 41
Received 12 Likes on 7 Posts
2010 C63, 2016 C63s, 2018 GLC63s
Originally Posted by mozy
Thanks for the compliment. I'm not sure I understand that last part, was it meant seriously or in jest? I'm confused...


Sorry... I meant you're a bad man because now I have the itch to set this all up and waste more time playing around with the headunit
Old 07-11-2018, 11:10 AM
  #71  
Junior Member
 
cocoh's Avatar
 
Join Date: Apr 2008
Posts: 26
Received 1 Like on 1 Post
W203
I will test this if works on newer firmware.. I know its "a little" problem with newer flash (from 2017....). If you can post your firmware of your hu5?
Old 07-11-2018, 01:27 PM
  #72  
MBWorld Fanatic!
Thread Starter
 
cyberorth's Avatar
 
Join Date: Nov 2008
Location: SoCal
Posts: 1,624
Received 107 Likes on 75 Posts
2018 AMG GTR, 2017 GLS63, 2019 C63s
Originally Posted by Davesc63
Sorry... I meant you're a bad man because now I have the itch to set this all up and waste more time playing around with the headunit
you naughty naughty boy!
Old 07-11-2018, 02:56 PM
  #73  
Member
 
mozy's Avatar
 
Join Date: May 2015
Posts: 76
Likes: 0
Received 27 Likes on 7 Posts
C63P
Originally Posted by Davesc63
Sorry... I meant you're a bad man because now I have the itch to set this all up and waste more time playing around with the headunit
Oh haha, sorry about that! If you do get back into it, happy hunting!
Old 09-04-2018, 10:36 AM
  #74  
Newbie
 
iwillnotserve's Avatar
 
Join Date: Aug 2018
Location: Netherlands
Posts: 3
Likes: 0
Received 0 Likes on 0 Posts
Mercedes G63 AMG
I know I'm late to the party, but I've read everything with great interest. I'd like to execute a few commands as root, and as others before me have experienced: I can't get a QNX eval license (as to build the QNX library to load a shell script). Does anyone have the binary, and would he/she be willing to share it with me? I temporarily have access to an NTG 5.5 system, and would like to check if the same methods as presented above work. Otherwise I'll start trying to connect through a network adapter... Tia.
Old 09-11-2018, 01:30 AM
  #75  
Newbie
 
iwillnotserve's Avatar
 
Join Date: Aug 2018
Location: Netherlands
Posts: 3
Likes: 0
Received 0 Likes on 0 Posts
Mercedes G63 AMG
I've tested the tricks (shellscript execution, attaching a USB ASIX 88772B network adapter) to a NTG5.5 headunit of a S560 (production date of the car is june 2018), and both don't work on this more recent system. Also tried it on a G63 (2017), but I think that's a NTG4.5 system which also doesn't work.


You have already rated this thread Rating: Thread Rating: 0 votes,  average.

Quick Reply: Dealer Mode



All times are GMT -4. The time now is 06:46 AM.