Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
Jerry Gamblin committed Nov 8, 2020
1 parent dd7ee94 commit 53023a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 122 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CarHacking.Tools

CarHacking.Tools is a scripts collection of scripts to help jump start car research (and hacking?). All the scripts are designed to run on [Ubuntu 20.04](ubuntu.com).
CarHacking.Tools is a scripts collection of scripts to help jump start car research (and hacking?). All the scripts are designed and update to run on [Ubuntu 20.04](ubuntu.com).

## How To Install

Expand Down Expand Up @@ -59,7 +59,6 @@ The following tools are installed and configured automatically:
| Python-OBD | <https://github.com/brendan-w/python-OBD> | Use over PIP install. |
| SavvyCAN | <http://www.savvycan.com/> | Basic CAN tool. |
| Scantool | <https://www.scantool.net/> | Super old tool but still works. |
| Socketcand | <https://github.com/dschanoeh/socketcand> | Basic CAN tool. |
| UDSim | <https://github.com/zombieCraig/UDSim> | Basic simulator for testing without a car. |
| Wireshark | <https://www.wireshark.org/> | Great for capturing OBDII data just like you would ethernet data. |

Expand Down
125 changes: 5 additions & 120 deletions toolinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ sudo DEBIAN_FRONTEND=noninteractive apt-get update -y
sudo DEBIAN_FRONTEND=noninteractive apt-get upgrade -y

# Java Fixes
add-apt-repository -y ppa:linuxuprising/java
sudo add-apt-repository -y ppa:linuxuprising/java
echo debconf shared/accepted-oracle-license-v1-2 select true | sudo debconf-set-selections
echo debconf shared/accepted-oracle-license-v1-2 seen true | sudo debconf-set-selections

Expand Down Expand Up @@ -88,9 +88,6 @@ wget \
wireshark \
zlib1g-dev

#Python Pip
sudo python -m pip uninstall pip # this might need sudo
sudo apt install --reinstall python-pip

# Starting Car Hacking Tool Installation

Expand Down Expand Up @@ -128,7 +125,7 @@ cd .. || exit

# Caringcaribou
# Read The Docs Here: https://github.com/CaringCaribou/caringcaribou
pip install --user python-can
pip3 install --user python-can
git clone https://github.com/CaringCaribou/caringcaribou

# c0f
Expand Down Expand Up @@ -170,124 +167,13 @@ cd .. || exit

# Python-ODB
# Read The Docs Here: https://python-obd.readthedocs.io/en/latest/
pip install --user pySerial

git clone https://github.com/brendan-w/python-OBD
cd python-OBD || exit
sudo python setup.py install
cd .. || exit


# PyOBD:
# Fix This!
# Backup: git clone https://github.com/Pbartek/pyobd-pi.git
wget http://www.obdtester.com/download/pyobd_0.9.3.tar.gz
sudo tar -xzvf pyobd_0.9.3.tar.gz
sudo rm -rf pyobd_0.9.3.tar.gz

# SavvyCAN
# Read The Docs Here: https://github.com/collin80/SavvyCAN

# Start With QT:
mkdir -p QT
cd QT || exit
cat << EOF > qt-noninteractive-install-linux.qs
function Controller() {
installer.autoRejectMessageBoxes();
installer.installationFinished.connect(function() {
gui.clickButton(buttons.NextButton);
})
installer.setMessageBoxAutomaticAnswer("cancelInstallation", QMessageBox.Yes);
}
Controller.prototype.WelcomePageCallback = function() {
gui.clickButton(buttons.NextButton, 3000);
}
Controller.prototype.CredentialsPageCallback = function() {
var widget = gui.currentPageWidget();
widget.loginWidget.EmailLineEdit.setText("");
widget.loginWidget.PasswordLineEdit.setText("");
gui.clickButton(buttons.NextButton, 500);
}
Controller.prototype.IntroductionPageCallback = function() {
gui.clickButton(buttons.NextButton);
}
Controller.prototype.TargetDirectoryPageCallback = function()
{
var widget = gui.currentPageWidget();
if (widget != null) {
widget.TargetDirectoryLineEdit.setText("/opt/QT");
}
gui.clickButton(buttons.NextButton);
}
Controller.prototype.ComponentSelectionPageCallback = function() {
var widget = gui.currentPageWidget();
function trim(str) {
return str.replace(/^ +/,"").replace(/ *$/,"");
}
var packages = trim("qt.qt5.5111.gcc_64,qt.qt5.5111.qtwebengine,qt.qt5.5111.qtwebengine.gcc_64").split(",");
if (packages.length > 0 && packages[0] !== "") {
widget.deselectAll();
for (var i in packages) {
var pkg = trim(packages[i]);
widget.selectComponent(pkg);
}
}
gui.clickButton(buttons.NextButton);
}
Controller.prototype.LicenseAgreementPageCallback = function() {
gui.currentPageWidget().AcceptLicenseRadioButton.setChecked(true);
gui.clickButton(buttons.NextButton);
}
Controller.prototype.StartMenuDirectoryPageCallback = function() {
gui.clickButton(buttons.NextButton);
}
Controller.prototype.ReadyForInstallationPageCallback = function()
{
gui.clickButton(buttons.NextButton);
}
Controller.prototype.FinishedPageCallback = function() {
var checkBoxForm = gui.currentPageWidget().LaunchQtCreatorCheckBoxForm
if (checkBoxForm && checkBoxForm.launchQtCreatorCheckBox) {
checkBoxForm.launchQtCreatorCheckBox.checked = false;
}
gui.clickButton(buttons.FinishButton);
}
EOF

wget http://qt.mirrors.tds.net/qt/archive/online_installers/4.0/qt-unified-linux-x64-4.0.0-online.run
chmod +x qt-unified-linux-x64-4.0.0-online.run

echo "Installing Qt, this will take a while."
echo " - Ignore warnings about QtAccount credentials and/or XDG_RUNTIME_DIR."
echo " - Do not click on any Qt setup dialogs, it is controlled by a script."
sudo ./qt-unified-linux-x64-4.0.0-online.run --script qt-noninteractive-install-linux.qs
cd .. || exit

# SavvyCan Install
git clone https://github.com/collin80/SavvyCAN.git
cd SavvyCAN || exit
sudo /opt/QT/5.11.1/gcc_64/bin/qmake
sudo make
sudo make install
sudo ./install
cd .. || exit

pip3 install --user pySerial
pip3 install --user obd

# Scantool
# Read The Docs Here: https://samhobbs.co.uk/2015/04/scantool-obdii-car-diagnostic-software-linux
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y scantool

# Socketcand
# Read The Docs Here: https://github.com/dschanoeh/socketcand
git clone http://github.com/dschanoeh/socketcand.git
cd socketcand || exit
autoconf
./configure --without-config
make clean
make
sudo make install
cd .. || exit

# UDSim
# Read The Docs Here: https://github.com/zombieCraig/UDSim
git clone https://github.com/zombieCraig/UDSim
Expand Down Expand Up @@ -356,7 +242,7 @@ Categories=Utility
StartupNotify=false
EOF

wget https://www.vhv.rs/dpng/d/457-4576489_kayak-white-kayak-icon-png-transparent-png.png -O kayak.png
wget http://www.vhv.rs/dpng/d/457-4576489_kayak-white-kayak-icon-png-transparent-png.png -O kayak.png

cat << EOF > KayakInstall.desktop
[Desktop Entry]
Expand Down Expand Up @@ -384,7 +270,6 @@ Categories=Utility
StartupNotify=false
EOF

sudo rm ~/Desktop/SavvyCAN.desktop
sleep 15
sudo chmod 755 ./*.desktop
cp ./*.desktop ~/.local/share/applications
Expand Down

0 comments on commit 53023a0

Please sign in to comment.