Difference between pages "Campus accommodation" and "Tutorials/Reverse engineering embedded software using Radare2"

From LCA2015 Delegate wiki
(Difference between pages)
Jump to: navigation, search
(Uni Halls)
 
 
Line 1: Line 1:
{{Trail|Delegate Information|Accommodation}}
+
This page describes preparation for [http://linux.conf.au/schedule/30102/view_talk?day=thursday Reverse engineering embedded software using Radare2]
Registration Information: http://linux.conf.au/register/accommodation
+
  
== Late night arrivals: ==
+
== Outline ==
  
If you are arriving at your accommodation outside of their regular reception hours, please leave your details here so we can organise out-of-hours reception.
+
We will try and get through all the following:
  
=== Uni Halls ===
+
* Introduction to Radare2 reverse engineering tool
'''Reception hours: 8am - 8pm. '''
+
* The Radare2 utilities
 +
* Basics of using the Radare to examine a binary you probably have on your laptop
 +
* Looking at an arduino binary
 +
* Introduction to MIPS architecture and disassembly
 +
* Extracting firmware images
  
'''After hours phone: 027 676 4862'''
+
You might like to bring your own binary to play with as well instead!
  
(your name, date & time of arrival)
+
==Important - please make an rc file ==
  
James (Ender) Brown, Fri 09/01, ~10:30PM
+
Radare2 was created by other, many people. Radare2 will by default print fortune cookies. Please, turn this feature off, by making the following file, in case there is a possibility of NSFW output.
  
Andrew Bartlett, Fri 9th, plane arrives 6:30PM
+
Instructions for Linux/Unix systems:
  
Brett James, Sat 10th, Plane arrives 17:10
+
    echo 'e cfg.fortunes=false' > ~/.radare2rc
  
Jonathan Woithe, Sat 10th, 20:00-2100 (plane arrives 18:55)
+
== Prerequisites ==
  
Himangi Saraogi, Sun 11th, ~16:00 (plane arrives 14:50)
+
If during the tutorial you are planning to follow the examples and/or try your own ideas, you really want to get this sorted before the event.
  
David Bell (@dtbell91), Matt Cengia (@mattcen), and Mike Abrahall (@mijofa), Sun 11th, ~19:00 (plane arrives 17:30)
+
Minimum requirements:
 +
* a C compiler and libraries needed to build radare2 - the "apt-gettable" version is out of date
 +
* xdot for viewing callgraphs
 +
* binwalk and srecord for firmware hacking
  
Douglas Bagnall, Sun 11th, ~21:30 (plane arrives 20:30)
+
Various other tools may be helpful, and indeed needed (e.g. an editor) to complete some of the examples
  
John Dalton, Sun 11th, ~midnight (arriving 22:05 on QF147)
+
If you are using a Debian-derived distro, for example:
  
Alastair D'Silva ([https://twitter.com/evildeece @evildeece] [mailto:alastair@d-silva.org Alastair D'Silva]) Mon 12th, 01:00 (plane arrives 23:35 JQ205 (SYD to AKL))
+
    sudo apt-get install build-essential git xdot eog ghex binwalk vim gedit srecord
  
=== Carlaw Park ===
+
It should be possible to build radare2 on Linux, FreeBSD/NetBSD etc, Max OS/X and Windows and possibly on Android if you try hard enough (using a Debian root, for example)
'''Reception hours: 8:30-5pm and 6pm-7pm Monday to Friday, 11am-1pm Saturday and Sunday. '''
+
  
'''After hours phone: 027 707 9813'''
+
However, the tutorial examples have only been tested using Debian Wheezy.
  
(your name, date & time of arrival; try to sort by arrival time)
+
=== Clone & build radare2 ===
  
* Clinton Roy, Fri 9th, ~midnight (plane arrives 22:45)
+
Note, changing to the lca2015_tutorial branch is important, because the software is under active development there could be breakage in master upstream
* Eyal Lebedinsky, Sat 10th, ~20:30 (plane arrives 18:55)
+
* Michael Ellery, Sat 10th, ~22:30 (plane arrives 20:50)
+
* [[user:Cindy Pallares Quezada|Cindy Pallares]], Sun 11th, ~8:00 (plane arrives 6:00)
+
* [[user:Daniel Bryan|Daniel Bryan]], Sun 11th, ~15:30 (plane arrives 14:00)
+
* [[User:Andrew Buckeridge|Andrew Buckeridge]], Sun 11th, ~10:00 (plane arrives 08:00, then customs + travel)
+
* Hamish Coleman, Sun 11th, ~14:55 (plane arrives 12:55)
+
* Ewen McNeill, Sun 11th, ~15:45 (plane arrives 14:15)
+
* [mailto:mike.carden@gmail.com Mike Carden], Sun 11th, ~16:30, (plane arrives 14:55)
+
* [mailto:seven@me.com Sam Desmond], Sun 11th, ~16:30, (plane arrives 14:55)
+
* Mark Ellem, Sun 11th, ~16:30 (plane arrives 15:10)
+
* Mark Jessop, Sun 11th, ~19:00 (plane arrives 17:15, then customs + travel)
+
* Chris Edsall, Sun 11th, ~20:00 (plane arrives 19:00)
+
* [mailto:jason.white@kordia.co.nz Jase White], Sun 11th, ~20:00, (plane arrives 19:00)
+
* [mailto:tony.halligan@kordia.co.nz Tony Halligan], Sun 11th, ~20:00, (plane arrives 19:00)
+
* Peter Vesely, Sun 11th, ~20:30 (plane arrives 18:55), early checkout on Sat 17th ~8:00am
+
* Paul Warren, Sun 11th, ~22:30, plane arrives 20:50.
+
* [mailto:tony.artemenko@gmail.com Anton Artemenko], Sun 11th, ~23:45 (plane arrives 22:45)
+
* Darryl Bond, Sun 11th, ~23:45 (plane arrives 22:45)
+
* [mailto:red@austin.ibm.com Antony (Red) Steel], Sun 11th ~23:30 (plane lands at 22:05)
+
  
== Clothes Washing ==
+
    git clone http://github.com/pastcompute/radare2
 +
    cd radare2
 +
    git checkout tutorial_branch
 +
    ./configure
 +
    make -j
 +
    sudo make symstall
  
University Hall: Yes
+
Note, you can install as a normal user if you need to:
  
"A large coin operated laundry is located on the basement level, equipped with plenty of washers and dryers. (Washing powder is not supplied, but can be purchased via the laundry vending machine or at nearby convenience stores).
+
    ./configure --prefix=$HOME/path/to/wherever
University Hall Apartments also have laundry and lounge facilities."
+
    make -j
Source: Facilities section of http://www.accommodation.auckland.ac.nz/en/ac-visitors/ac-summer-2/ac-visiting-students.html#59385b0623e91baf6d145a6244e4ac5b
+
    sudo make symstall
 +
    export PATH=$HOME/path/to/wherever:$PATH
  
 +
Clone the examples repository, ready for use during the tutorial
  
Carlaw Park: Communal coin operated laundries are available in room 833.
+
    cd
 +
    git clone http://github.com/pastcompute/lca2015-radare2-tutorial
  
Non-campus laundromat: http://www.bubbleslaundromat.co.nz/
+
I have already added prebuilt examples to git but there are instructions for building them in git, you will need the arduino IDE or an openwrt buildroot.
  
137 Hobson Street
+
==Troubleshooting==
Auckland Central
+
Open 6am to Midnight.
+
Self-service laundromat.
+
Large washing machine load - $6
+
Commercial extra large washing machine load - $10
+
Commercial dryers $2 per 10mins.
+
Normal household load, Wash & Dry - $10 to $12 total.
+
Note changer onsite to change notes into $2 coins for use in all machines.
+
Soap powder dispenser available.
+
Parking out front.
+
Open 6am to Midnight every day of the year!
+
  
==Amenities==
+
The tutorial is not until Thursday afternoon. If you need help with the above ping me on Twitter, preferably before the day! [https://twitter.com/pastcompute @pastcompute]
 
+
This section is for information about what is available and what to bring.  
+
 
+
=== Uni Halls ===
+
 
+
 
+
=== Carlaw Park ===
+
 
+
'''This is from personal experience taken from a discussion on [http://lists.lca2015.linux.org.au/pipermail/chat/2015-January/000416.html the mailing list]'''
+
 
+
Having already arrived at Carlaw Park, here is a brief run down of what we've got. We're in a 3 bedroom apartment. There is University Wifi AP which supported eduroam in the living area.
+
 
+
Our kitchen has:
+
* 4x Bowls, plates and cutlery
+
* 1x Fry Pan, 2x Saucepans
+
* Kitchen Towel and dishcloth
+
* Stove and Oven
+
* Fridge/Freezer
+
* Microwave
+
 
+
Living/dining area:
+
* TV
+
* Lounges for up to 6 people.
+
* coffee table
+
* dining table for 4 (round and small)
+
 
+
In each bedroom there was:
+
* Towel and face cloth
+
* shampoo and soap
+
* Full Bedding (2x sheets, Blanket with cover and 1 pillow)
+
* Wardrobe (no hangers)
+
* Desk with chair and light (on the wall above the desk)
+
 
+
We immediately bought:
+
* dish washing liquid
+
* hand towel for the bathroom
+
* hand soap
+
* water bottle for cold water in the fridge
+
 
+
The supermarket is about 10 minutes walk away. Hope that's helpful.
+

Revision as of 22:35, 10 January 2015

This page describes preparation for Reverse engineering embedded software using Radare2

Outline

We will try and get through all the following:

  • Introduction to Radare2 reverse engineering tool
  • The Radare2 utilities
  • Basics of using the Radare to examine a binary you probably have on your laptop
  • Looking at an arduino binary
  • Introduction to MIPS architecture and disassembly
  • Extracting firmware images

You might like to bring your own binary to play with as well instead!

Important - please make an rc file

Radare2 was created by other, many people. Radare2 will by default print fortune cookies. Please, turn this feature off, by making the following file, in case there is a possibility of NSFW output.

Instructions for Linux/Unix systems:

   echo 'e cfg.fortunes=false' > ~/.radare2rc

Prerequisites

If during the tutorial you are planning to follow the examples and/or try your own ideas, you really want to get this sorted before the event.

Minimum requirements:

  • a C compiler and libraries needed to build radare2 - the "apt-gettable" version is out of date
  • xdot for viewing callgraphs
  • binwalk and srecord for firmware hacking

Various other tools may be helpful, and indeed needed (e.g. an editor) to complete some of the examples

If you are using a Debian-derived distro, for example:

   sudo apt-get install build-essential git xdot eog ghex binwalk vim gedit srecord

It should be possible to build radare2 on Linux, FreeBSD/NetBSD etc, Max OS/X and Windows and possibly on Android if you try hard enough (using a Debian root, for example)

However, the tutorial examples have only been tested using Debian Wheezy.

Clone & build radare2

Note, changing to the lca2015_tutorial branch is important, because the software is under active development there could be breakage in master upstream

   git clone http://github.com/pastcompute/radare2
   cd radare2
   git checkout tutorial_branch
   ./configure
   make -j
   sudo make symstall

Note, you can install as a normal user if you need to:

   ./configure --prefix=$HOME/path/to/wherever
   make -j
   sudo make symstall
   export PATH=$HOME/path/to/wherever:$PATH

Clone the examples repository, ready for use during the tutorial

   cd
   git clone http://github.com/pastcompute/lca2015-radare2-tutorial

I have already added prebuilt examples to git but there are instructions for building them in git, you will need the arduino IDE or an openwrt buildroot.

Troubleshooting

The tutorial is not until Thursday afternoon. If you need help with the above ping me on Twitter, preferably before the day! @pastcompute