Difference between pages "User talk:Lin Nah" and "Tutorials/Reverse engineering embedded software using Radare2"

From LCA2015 Delegate wiki
(Difference between pages)
Jump to: navigation, search
(add alcohol policies)
 
 
Line 1: Line 1:
== Persenters vs Presenters ==
+
This page describes preparation for [http://linux.conf.au/schedule/30102/view_talk?day=thursday Reverse engineering embedded software using Radare2]
Hi Lin, just wondering why you're maintaining a link to the misspelled [[Persenters Resource Page]] on your profile page, which has a hard redirect to the properly spelled [[Presenters Resource Page]]? You asked me some time ago to move the misspelled one and fix the problem. As I replied to you back then, I cannot move pages, as I do not have <span class="plainlinks">[https://linux.conf.au/wiki/index.php?title=Special:ListUsers&group=sysop Administrator privileges]</span>. You, however, do have the magical wiki wand, and can wave it yourself to fix this problem. [[User:Augur_.|<font color="#703931">'''ᏜᏠᎶᏠᏑ'''</font>]][[User_talk:Augur_.|<font size="4" color="#723a32">&#x2710;</font>]][[Special:Contributions/Augur_.|<font size="4" color="#723a32">&#x2315;</font>]] 08:59, 29 December 2014 (AEDT)
+
: [[User:Glen Ogilvie|Glen Ogilvie]] has just given me admin rights on the wiki, and the first thing I did was delete that unsightly misspelled page. Sorted! [[User:Augur_.|<font color="#703931">'''ᏜᏠᎶᏠᏑ'''</font>]][[User_talk:Augur_.|<font size="4" color="#723a32">&#x2710;</font>]][[Special:Contributions/Augur_.|<font size="4" color="#723a32">&#x2315;</font>]] 17:25, 2 January 2015 (AEDT)
+
:: I've left the hard redirect page for [[Partners Programme]] to [[Partners' Programme]] alone, as it makes sense for delegates looking for it without the apostrophe. [[User:Augur_.|<font color="#703931">'''ᏜᏠᎶᏠᏑ'''</font>]][[User_talk:Augur_.|<font size="4" color="#723a32">&#x2710;</font>]][[Special:Contributions/Augur_.|<font size="4" color="#723a32">&#x2315;</font>]] 17:30, 2 January 2015 (AEDT)
+
  
= Stuff for wiki =
+
== Outline ==
  
Assortment of content I'm chucking on this page.
+
We will try and get through all the following:
Hopefully someone can take some time to put it in the righ tpages etc.
+
  
http://wikitravel.org/en/New_Zealand
+
* 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
  
Some stuff todo here in the r/auckland FAQ http://www.reddit.com/r/auckland/wiki/index and r/nz faq http://www.reddit.com/r/newzealand/comments/1exkfs/faq_tourism_visiting_new_zealand/
+
You might like to bring your own binary to play with as well instead!
  
Maps: either Open streetmap or google map
+
==Important - please make an rc file ==
If someone is creating them
+
  
== Customs + Biosecurity ==
+
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.
  
* Read carefully. Includes having to clean your shoes, sporting, camping, hunting, fishing, diving and recreational gear.
+
Instructions for Linux/Unix systems:
  
Items to declare
+
    echo 'e cfg.fortunes=false' > ~/.radare2rc
* Quarantine procedures http://www.customs.govt.nz/inprivate/onyourarrival/quarantine/Pages/default.aspx
+
* Items to declare: http://mpi.govt.nz/travel-and-recreation/arriving-in-new-zealand/items-to-declare/
+
* Prohibited imports http://www.customs.govt.nz/features/prohibited/imports/Pages/default.aspx?q=8&s=8
+
* Prohibited exports http://www.customs.govt.nz/features/prohibited/exports/Pages/default.aspx
+
* NZ Customs Service's FAQ http://www.customs.govt.nz/questions/Pages/default.aspx?q=65&s=65
+
  
 +
== 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.
  
* Prescription Medication
+
Minimum requirements:
If you have prescription medication you need to bring with you, you ned to declare it in your passenger arrival card and do the following:
+
* 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
  
http://www.customs.govt.nz/questions/Pages/default.aspx?q=65&s=65
+
Various other tools may be helpful, and indeed needed (e.g. an editor) to complete some of the examples
Source: http://www.customs.govt.nz/features/prohibited/imports/Pages/default.aspx?q=8&s=8
+
<quote>
+
Personal imports (accompanying a traveller)
+
  
If you arrive in New Zealand carrying prescription medicine on your person or in your luggage you may only bring it in if you:
+
If you are using a Debian-derived distro, for example:
  
  * Declare the medicine on your Passenger Arrival Card.
+
    sudo apt-get install build-essential git xdot eog ghex binwalk vim gedit srecord
  * Have a copy of the medicine’s prescription or a letter from your doctor stating that you are being treated with the medicine.
+
  * Have the medicine in its original pharmacy container, with your name on the label, and strength and dosage details clearly stated.
+
  * Have no more than three months supply (oral contraceptives, where a six month supply is permitted, are the exception).
+
<end quote>
+
  
Info for Australians [http://www.humanservices.gov.au/customer/services/medicare/travelling-overseas-with-pbs-medicine?utm_id=9 travelling Overseas with PBS medicine]
+
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)
  
== Consulates + High commission + related stuff ==
+
However, the tutorial examples have only been tested using Debian Wheezy.
  
* Australian High Commission
+
=== Clone & build radare2 ===
** Webpage http://www.newzealand.embassy.gov.au/wltn/home.html
+
** Contact details for for Aust Consulate General in Auckland http://www.australia.org.nz/wltn/media.html
+
** Travel Advice for NZ http://smartraveller.gov.au/zw-cgi/view/Advice/New_Zealand
+
  
* US Embassy in NZ
+
Note, changing to the lca2015_tutorial branch is important, because the software is under active development there could be breakage in master upstream
** Web page http://newzealand.usembassy.gov/
+
** Consulate Auckland http://newzealand.usembassy.gov/american_citizen.html
+
  
* Where to find representatives of other countries
+
    git clone http://github.com/pastcompute/radare2
** http://www.mfat.govt.nz/Embassies/2-Foreign-representatives-to-NZ/Diplomatic-and-Consular-List.php
+
    cd radare2
** Note some may just list the embassy or office in Wellington but if you check out that web address, they may or may not list an Auckland rept.
+
    git checkout tutorial_branch
 +
    ./configure
 +
    make -j
 +
    sudo make symstall
  
== Smoke Free Auckland ==
+
Note, you can install as a normal user if you need to:
http://www.aucklandcouncil.govt.nz/EN/planspoliciesprojects/councilpolicies/pages/smokefreepolicy.aspx
+
Check the FAQ (pdf document) linked to on the page above.
+
  
Smoke free areas include:
+
    ./configure --prefix=$HOME/path/to/wherever
 +
    make -j
 +
    sudo make symstall
 +
    export PATH=$HOME/path/to/wherever:$PATH
  
* all regional parks
+
Clone the examples repository, ready for use during the tutorial
* many local parks and playgrounds
+
* Mt Smart Stadium
+
* Eden Park Stadium and
+
* Auckland Zoo.
+
  
Effective from July 2013 and includes outdoor facilities such as:
+
    cd
 +
    git clone http://github.com/pastcompute/lca2015-radare2-tutorial
  
* stadiums
+
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.
* swimming pools
+
* playgrounds
+
* skate parks
+
* sports fields and parks and reserves
+
* public outdoor areas associated with the council, including service centres, local board offices, libraries, community facilities and halls, museums, leisure, recreation and arts centres; and
+
* train stations and platforms, bus stations and shelters and ferry terminals.  
+
  
== Alcohol related policies ==
+
==Troubleshooting==
* Drinking age is 18.
+
  
* Buying alcohol
+
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]
** If you wish to buy alcohol, bring your passport or NZ Driving licence with you. It has to be something official with a photo and your name + date of birth.
+
** If you are with a group at the checkout and there's alcohol being purchased, they will ask everyone in the group for IDs.
+
 
+
 
+
* Auckland City alcohol ban.
+
 
+
** Year wide alcohol ban means you can drink in public unless it is in a licenced premises. Some bans are 24hrs a day and others are nighttime only.
+
** There are also some temporary alcohol bans
+
** [http://www.aucklandcouncil.govt.nz/EN/licencesregulations/alcohol/drinkresponsibly/Pages/alcoholbans.aspx This page] lists alcohol ban: current, temporary etc. Auckland cbd or where conference venue is in the Waitemata local board.
+
** [http://www.aucklandcouncil.govt.nz/EN/licencesregulations/alcohol/Documents/liquorbanareaswaitemata.pdf pdf of map liquor ban areas in Waitemata]
+
 
+
 
+
== Supermarkets ==
+
 
+
Countdown Quay St is open 24 hrs But no alcohol overnight. Alcohol can only be sold between 7am and 11pm. Not allowed between 11pm and 7am.
+
 
+
* Countdown metro on Victoria St W (opposite elliot st) is probably the closest.
+
Countdown Auckland Metro. 19-25 Victoria Street W, Auckland CBD.
+
Ph (09) 255 2428
+
Fax (09) 255 9800
+
Opening Hours: Mon - Sun : 7am-10pm
+
https://plus.google.com/107954093614494144047/about?hl=en&gl=nz
+
 
+
* New World on 125 Queen St (opposite Shortland St in the former BNZ food court)
+
8am - 10am
+
https://plus.google.com/114810846568722205399/about?hl=en&gl=nz
+
 
+
Both Countdown + new world is smaller than the countdown in Quay St + New World at Victoria Park.
+
 
+
* they all have stuff for gluten free, egg free, dairy free, vegetarian diets (eg gluten free breads etc). They also have butchery, bread, deli, etc. just the smaller ones have not as big range.
+
 
+
Countdown website http://www.countdown.co.nz/
+
(There's an online store. some allow you to buy online + pickup or deliver)
+
 
+
Countdown Auckland City. 76 Quay Street, Auckland City.
+
Phone: (09) 275 2567
+
Fax: (09) 377 7833
+
Opening Hours Mon - Sun, 24 hours
+
https://plus.google.com/107318942159026452985/about?hl=en&gl=nz
+
 
+
New World Victoria Park
+
7am - midnight
+
https://plus.google.com/100888503898727682566/about?hl=en&gl=nz
+
 
+
 
+
Lim Chhour (sp) asian supermarket on 184 K'Rd (behind k'rd foodcourt)
+
and Tai Ping Beach Rd are 2 closest asian supermarkets to the venue.
+
 
+
Japanese Mart at Wyndham St http://japanmart.co.nz/contact/
+
 
+
== Speciality foods ==
+
SUpermarkets do have a lot of the organic, dairy free, gluten free(incl bread + pasta), sugarfree , and food for special diets. However there's other shops too.
+
Eg if the bread/pasta/biscuits isn't in the bread/pasta section, check for the supermarket's speciality section or ask staff.
+
 
+
 
+
=== vegan ===
+
Vegans may like '''The Cruelty Free shop''' on K'Rd http://www.thecrueltyfreeshop.co.nz/
+
 
+
List of where to buy vegetarian/vegan products in Auckland
+
http://www.vegetarian.org.nz/content/home/local-events/auckland-centre/auckland-vegetarian-shops-and-products/
+
 
+
List of vegan + vegetarian wines + beer
+
http://www.vegetarian.org.nz/content/shops-and-products/wines-and-beer/
+
http://www.veggie.co.nz/wine/
+
http://www.barnivore.com/wine/m-r?region=New+Zealand
+
 
+
There may be a few other smaller producers who may be vegan/vegan but didn't get themselves certified.
+
 
+
* Vegan High Tea  or Degustation available at Heritage Auckland
+
* Satya South Indian Cafe (K Rd + Gt Nth Rd + Mt Eden Rd) has lovely vegan indian dishes (As well as meat + vegetarian selections)
+
* Auckland Vegan blogs about vegan food places she visits. She's a geek too.
+
** Blog page https://aucklandvegan.wordpress.com/
+
** Google map https://www.google.com/maps/d/viewer?t=h&ie=UTF8&msa=0&z=12&hl=en&mid=zOJMW_D_CHpM.kqfi7VArQ1iA
+
** FB https://www.facebook.com/AKLvegan
+
** Twitter https://twitter.com/aucklandvegan
+
 
+
 
+
=== Gluten Free in NZ ===
+
List of Gluten free products in NZ
+
http://jimmyboswell.com/foodblog/everyday-gluten-free-products-in-new-zealand/
+
http://www.coeliac.org.nz/eating_gluten_free
+
GF Manufacturers http://coeliacconz.joidesign.com/manufacturer
+
 
+
(there used to be a manufacturer's database but link I have for it isn't working atm)
+
 
+
Gluten free beer http://www.vegetarian.org.nz/content/shops-and-products/wines-and-beer/
+
 
+
== Cheese ==
+
Good selection at supermarket.  Those that won awards usually have a label.
+
* Cheese Award winners listed here http://www.nzsca.org.nz/cheese-awards/
+
* 2014 cheese awards winners http://www.scoop.co.nz/stories/BU1403/S00116/dutch-trio-sweep-nz-cheese-awards.htm
+
 
+
* Kapiti Cheese + Icecream shop
+
19 Shortland St, Auckland CBD  https://www.kapiticollection.co.nz/
+
http://thefoodpornographer.com/2013/05/the-kapiti-store-auckland/
+
 
+
* La Cigale market - there's some french cheeses sold there.
+
 
+
== Bakeries in town ==
+
* Pandoro (queen st) 75 queen st http://www.pandoro.co.nz/Retail+Stores/Auckland/Queen+Street.html pdf of order form http://www.pandoro.co.nz/site/pandoro/PreOrder%20Autumn%2014Mar%202013.pdf
+
* Cheap bakery at Atrium on Elliot food court
+
* Paneton by Victoria Park  http://www.panetonbakery.co.nz/
+
Unit 1, 21 Halsey Street Freemans Bay 1010, New Zealand +64 9-309 5338
+
https://plus.google.com/105757249149019169544/about?hl=en&gl=nz
+
 
+
* Supermarkets have bakery section
+
 
+
 
+
== Best pies ==
+
Prob good for ppl going on the roadtrip and wish to have pies along the way
+
http://www.nzbakels.co.nz/pie_awards_2014.cfm
+
 
+
== Cake shops ==
+
Whole cakes, don't need to order
+
* Pandoro. http://www.pandoro.co.nz/Retail+Stores/Auckland/Queen+Street.html Have whole cakes + by the slice. pdf of order form gives you an idea of what ackes are avail http://www.pandoro.co.nz/site/pandoro/PreOrder%20Autumn%2014Mar%202013.pdf
+
* Gateau House, http://www.gateauhouse.com/
+
18 High Street  or 328 Queen St. opposite Carls Junior.
+
http://www.gateauhouse.com/contact lists address, phone numbers + hours
+
Lovely choc mousse cakes, chiffon cakes. whole cake, also by slices.  Website has pics + range
+
* La Couronne: 5C Lorne St. CBD> http://lacouronne.co.nz/ https://www.facebook.com/Lacouronnecakeboutique has pics 8)
+
http://www.thedenizen.co.nz/gastronomy/la-couronne/
+
* Vaniye (Parnell). French cake shop in Parnell http://www.vaniye.com/
+
** FB + twitter has pics to drool over. FB https://www.facebook.com/Vaniye Twitter https://twitter.com/Vaniye
+
** google+ page https://plus.google.com/+PatisserieVANIYEAuckland/?hl=en
+
 
+
 
+
 
+
== Markets ==
+
I like markets as they are a good place to find the best NZ local produce (especially the farmers markets).  "Farmers market" in nz means things they sell has to be made/grown within a certain radius of the market's location. They tend to be organic or spray free too. Authenticity http://www.marketground.co.nz/fmnz/35275/
+
 
+
* Britomart Farmers market on Saturday 8am - 12:30pm  http://www.britomart.org/city-farmers-market  google+ https://plus.google.com/102403961790008849161/about?gl=nz&hl=en
+
 
+
* Parnell Farmers market - behind the jubilee building on Sundays 8am - noon http://www.parnell.org.nz/Parnell-Trust-Farmers-Market-Auckland.htm  google+ https://plus.google.com/+ParnellFarmersMarketAuckland/?hl=en
+
 
+
* La Cigale French Market in Parnell. on Sat + sundays St Georges Bay Rd. Can walk from carlaw park accommodations. Doesn't comply with "farmers market" rules. La Cigale (the shop which started the market) has imported french cheeses and wines as well as other kitchenware. However there's many stalls there that would comply within the NZ farmers market regulations.
+
 
+
Very very good market. There's a glutenfree sausage stall there too.
+
 
+
When: every Saturday from 8am to 1.30pm and Sunday from 9am to 1.30pm.
+
Web http://www.lacigale.co.nz/french-market/
+
google+ https://plus.google.com/101268803893335286964/about?hl=en&gl=nz
+
FB https://www.facebook.com/lacigalemarkets
+
 
+
* Friday night market at Wynyard quarter
+
 
+
* Farmers market web page http://www.farmersmarkets.org.nz/
+
 
+
Further afield (for travellers) the Matakana market on Sat morning is worth
+
visiting if you're on the way to visit the marine reserve at Leigh.
+
 
+
*  Wellington City Market- there's a foodies market on sunday
+
FB https://www.facebook.com/WellingtonCityMarket + Twitter https://twitter.com/thecitymarket
+
 
+
 
+
== Pharmacies: ==
+
This pharmacy is in the same bldg as Countdown. It is open 9am - 9pm  7 days a week (unlike the one at uni which closes around 5pm.
+
 
+
Quay St Pharmacy
+
 
+
Countdown Building
+
 
+
76 Quay Street
+
Auckland Central
+
 
+
Phone +64(9) 280 6197
+
Fax +64(9) 374 4577
+
Email: qspharmacy@xtra.co.nz
+
 
+
Store Hours
+
Open 7 days 9 am to 9 pm
+
+
 
+
Campus pharmacy
+
https://plus.google.com/105334622712358473382/about?gl=nz&hl=en
+
http://www.yelp.co.nz/biz/campus-pharmacy-auckland
+
 
+
The Campus Pharmacy sells cosmetics, general medicines, toiletries, sports products, stamps, and phone cards. It also processes film and is an agent for NZ Post.
+
 
+
Ground floor, Kate Edger Information Commons
+
City Campus
+
 
+
Phone: +64 9 373 7599 ext 87935
+
from https://www.auckland.ac.nz/en/about/the-university/how-university-works/campuses-locations-transport/facilities-amenities.html
+
 
+
 
+
== Doctors ==
+
 
+
http://www.quaymed.co.nz/ lists their fees as $80
+
http://www.quaymed.co.nz/practice-hours/patient-fees
+
They are close (by the old railway station on Beach Rd)
+
 
+
http://www.citymed.co.nz/  I rang to ask $85 for tourists (Same as the casual + not enrolled NZer + NZ PR)
+
 
+
http://www.thefono.org/services-fees/fees/ (by St Patricks Square)
+
 
+
 
+
Note: Casual + not enrolled applies to any person going to a GP that isn't their normal GP. So applies to ppl who travel from out of town.
+
 
+
== Free wifi ==
+
* Auckland City Free wifi service. The service is free to all users for 30 minutes per day, per device. Details http://www.aucklandcouncil.govt.nz/EN/parksfacilities/wifi/Pages/home.aspx
+
* Auckland City libraries have free wifi http://www.aucklandlibraries.govt.nz/EN/services/computerservices/wifi/Pages/wifi.aspx
+
* MacDonalds have free wifi.
+
 
+
 
+
== Marine reserves near Auckland ==
+
Leigh + Cathedral cove
+
 
+
== Recreation/games ==
+
* Paintball
+
* 10 pin bowling
+
both at sky city entertainment centre on queen st.
+
 
+
* Swimming - Tepid baths and Parnell Baths. IIRC Both have casual rates and gym too.
+
Both are auckland city facilities but when I called to check, was told they allow anyone to use. not just auckland city residents.
+
 
+
** Tepid Baths. web https://aucklandleisure.co.nz/locations/central/tepid-baths/
+
address 100 Customs St W. Prices https://aucklandleisure.co.nz/membership-and-prices/#TB  Casual price for gym is $20.70 pp. (not sure if it is per day or per session - ask)
+
** Parnell Baths. google+ https://plus.google.com/115758260050007186962/about?hl=en&gl=nz Web http://www.clmnz.co.nz/parnellbaths/ Prices http://www.clmnz.co.nz/parnellbaths/contact/rates/
+
This one is an outdoor pool and you see auckland harbour.
+
* Gym
+
** Tepid + Parnell Baths have gym.
+
** University of Auckland Recreation centre has casual workout rate for non students at $20
+
http://www.universitysport.auckland.ac.nz/en/membership.html
+
 
+
* Waterfront Bike Hire http://www.queens-wharf.co.nz/queens-wharf/things-to-do/things-to-do-details-page/?ID=97
+
 
+
 
+
* jogging - check email I sent to chat list on jogging
+
* Walking + Tramping tracks in Auckland http://www.aucklandcouncil.govt.nz/EN/parksfacilities/walkingtracks/Pages/home.aspx
+
* Fergs kayak
+
 
+
== Free stuff ==
+
=== Free outdoor movie on Fri night ===
+
Silo Cinema is on Friday nights from 9pm
+
Check Rating on show for suitability for kids.
+
 
+
* 9 Jan Crocodile Dundee http://www.silopark.co.nz/silo-park/whats-on-listing/crocodile-dundee/
+
* 16 Jan The Dark Horse http://www.silopark.co.nz/silo-park/whats-on-listing/the-dark-horse/
+
 
+
=== Heritage walks ===
+
 
+
* Auckland Domain 2 hr self guided walk with podcast
+
http://www.parnell.org.nz/Parnell-Trust-Heritage-Walks-podcasts-DOMAIN.htm
+
If you look towards the bottom of the page above you'll find links to other walks in the domain
+
Auckland Museum: Pukekawa - The Domain Volcano Walk
+
Auckland Museum: Auckland Domain Sculpture Walk
+
Auckland Museum: Domain Heritage Walk
+
 
+
https://plus.google.com/108214945342883534590/about?hl=en&gl=nz
+
 
+
* Grafton Heritage Walk  1.5hr self guided walk with podcast
+
http://www.parnell.org.nz/Parnell-Trust-Heritage-Walks-podcasts-GRAFTON.htm
+
 
+
* Grafton Bridge http://www.ipenz.org.nz/heritage/itemdetail.cfm?itemid=135
+
http://www.heritage.org.nz/the-list/details/16
+
https://en.wikipedia.org/wiki/Grafton_Bridge
+
http://kroad.com/heritage/grafton-bridge/
+
 
+
* History + map of Symonds St Cemetary
+
http://www.aucklandcity.govt.nz/dbtw-wpd/virt-exhib/cemeteries/info.html
+
 
+
 
+
== Free + for kids ==
+
 
+
* Wynyard quarter - playground + wind tree + water
+
Kids like to walk/sit in the water the windtree is in
+
http://www.northwharf.co.nz/north-wharf/things-to-do/things-to-do-details-page/?ID=8
+
There's  aplayground next to it http://www.northwharf.co.nz/north-wharf/things-to-do/things-to-do-details-page/?ID=31
+
 
+
As you walk from there towards town you'll find crates that are for seats but kids like to climb up + down them. also some stainless steel funnels
+
http://www.northwharf.co.nz/north-wharf/things-to-do/things-to-do-details-page/?ID=7
+
 
+
There's a pedestrian bridge between Wynyard Quarter + Viaduct. If you stick around long enough you'll see the bridge lift up to open for boats to sail under.
+
bridge btn viaduct + wynyard quarter
+
http://www.waterfrontauckland.co.nz/waterfront-auckland/pages/newspage/?ID=18
+
https://en.wikipedia.org/wiki/Wynyard_Crossing
+
 
+
* Auckland Domain
+
Duck pond w ducks. Sensory garden
+
http://www.aucklandcouncil.govt.nz/en/parksfacilities/premierparks/pages/aucklanddomain.aspx
+
http://gardenclubofpei.blogspot.co.nz/2013/12/gardens-of-world-auckland-domain-new.html
+
https://en.wikipedia.org/wiki/Auckland_Domain
+
 
+
== What / Where is this ==
+
K Rd = Karangahape Rd
+

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