Skip to content

Instantly share code, notes, and snippets.

@genhack
Last active May 6, 2025 19:44
Show Gist options
  • Save genhack/fe6797379056de60be1239aa8c9e2887 to your computer and use it in GitHub Desktop.
Save genhack/fe6797379056de60be1239aa8c9e2887 to your computer and use it in GitHub Desktop.
VSec Challenge Alias and Solutions.
Wiki:
https://ramn.readthedocs.io/en/latest/userguide/diag_tutorial.html#
Command:
isotpdump -s 7E0 -d 7E8 -c -a -u vcan0
Alias:
alias ecuAD='candump vcan0 | grep "7E0\|7E8"'
alias ecuAF='candump vcan0 | grep "7E0\|7DF"'
alias iso-monitor='while true; do isotprecv -p 00 -s 7E0 -d 7E8 -l vcan0 | while read line; do echo "$line"; echo "$line" | xxd -r -p 2>/dev/null | hexdump -C; done; done'
alias iso-monitorF='while true; do isotprecv -p 00 -s 7E0 -d 7DF -l vcan0 | while read line; do echo "$line"; echo "$line" | xxd -r -p 2>/dev/null | hexdump -C; done; done'
Vin:
echo "22 F1 90" | isotpsend -p 00 -s 7E0 -d 7E8 vcan0
8fe34400a5d1:~$ ecuAD │8fe34400a5d1:~$ iso-monitor
vcan0 7E0 [8] 03 22 F1 90 00 00 00 00 │62 F1 90 66 6C 61 67 7B 76 31 6E 5F 42 48 6D 61 63 68 33 7D
vcan0 7E8 [8] 10 14 62 F1 90 66 6C 61 │00000000 62 f1 90 66 6c 61 67 7b 76 31 6e 5f 42 48 6d 61 |b..flag{v1n_BHma|
vcan0 7E0 [8] 30 00 00 00 00 00 00 00 │00000010 63 68 33 7d |ch3}|
vcan0 7E8 [8] 21 67 7B 76 31 6E 5F 42 │00000014
vcan0 7E8 [8] 22 48 6D 61 63 68 33 7D
Restart ecu:
8fe34400a5d1:~$ echo "11 01" | isotpsend -p 00 -s 7E0 -d 7DF vcan0
8fe34400a5d1:~$ ecuAF
vcan0 7E0 [8] 03 22 F1 90 00 00 00 00 │8fe34400a5d1:~$ iso-monitorF
vcan0 7E0 [8] 02 11 01 00 00 00 00 00 │67 30 47 72 65 33 6E
vcan0 7DF [8] 07 67 30 47 72 65 33 6E │00000000 67 30 47 72 65 33 6e |g0Gre3n|
│00000007
Engine Trouble:
echo "19 02 FF" | isotpsend -p 00 -s 7E0 -d 7E8 vcan0
fe34400a5d1:~$ isotpdump -s 7e0 -d 7e8 -a -u vcan0 │8fe34400a5d1:~$ isotprecv -p 00 -s 7E0 -d 7E8 -l vcan0
vcan0 7E0 [8] [SF] ln: 3 data: 19 02 FF 00 00 00 00 - '.......' - [SRQ] ReadDTCIn │59 02 FF 3E 9F 01 AB
formation │
vcan0 7E8 [8] [SF] ln: 7 data: 59 02 FF 3E 9F 01 AB - 'Y..>...' - [PSR] ReadDTCIn │
formation
Secrets in Memory:
Wip Require Coding
Security Access Level 3:
#Request Diag Session
echo "10 03" | isotpsend -p 00 -s 7E0 -d 7E8 vcan0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment