Go to file
George Hotz be0fe62f6a bugfixes 2014-10-12 14:32:58 -04:00
cda added clang python and started static, first push to new home 2014-09-05 15:05:37 +00:00
extra bugfixes and other quality 2014-10-06 20:21:12 -04:00
ida python plugin 2014-09-11 09:24:48 -04:00
middleware bugfixes 2014-10-12 14:32:58 -04:00
pin wait i think i got it 2014-09-24 21:02:07 -04:00
qemu_mods move thumb flag to front of log 2014-09-19 17:37:12 -04:00
qiradb fix the qiradb to memcommit loads 2014-09-23 19:13:15 -04:00
qiradb_test refactored the python module packaging, VERSION in one place 2014-07-28 14:48:14 -07:00
releases better quality v1.1 2014-09-13 17:03:43 +00:00
static2 thats what i meant 2014-10-12 14:13:43 -04:00
tests analyzer hack 2014-09-23 20:29:44 -04:00
testvm vm testing infra 2014-09-13 11:25:57 -04:00
web bugfixes 2014-10-12 14:32:58 -04:00
.gitignore bsd licenses for people who believe in those things 2014-09-23 16:56:31 -04:00
README bsd licenses for people who believe in those things 2014-09-23 16:56:31 -04:00
VERSION package this as version 0.6 instead 2014-07-28 22:54:19 -07:00
bap_build.sh update bap build 2014-09-19 16:23:31 -04:00
bdistrib.sh forgot pin headers 2014-08-21 11:21:39 -07:00
cda_build.sh its very important qira just work on a target platform 2014-08-20 18:53:31 -07:00
fetchlibs.sh ship aarch64 with v0.8 even though it's super broken 2014-08-18 11:35:18 -07:00
install.bat attempting to make qira work on windows 2014-08-05 21:25:41 +00:00
install.sh add y flag to apt-get in main install 2014-09-25 10:18:35 -04:00
pin_build.sh fedora, yo 2014-09-23 19:42:43 -04:00
qemu_build.sh fixed mips configure option 2014-09-29 13:21:02 -04:00
qira c database works, about to tear out old stuff 2014-07-22 17:37:06 -07:00
qira.bat the server wants to work 2014-08-05 17:07:55 -07:00

README

QIRA is a competitor to strace and gdb
See http://qira.me/ for high level usage information
All QIRA code is released under GPLv2 or BSD
Other code in this repo released under it's respective license

== Installing latest release ==

wget -qO- https://github.com/BinaryAnalysisPlatform/qira/raw/master/releases/qira-1.1.tar.xz | unxz | tar x && cd qira && ./install.sh


== Installation Extras ==

./fetchlibs.sh will fetch the libraries for armhf, armel, aarch64, and ppc
./cda_build.sh will install CDA, allowing cda and --cda to work
./pin_build.sh will install the QIRA PIN plugin, allowing --pin to work


== Releases ==

v1.1 -- Support for names and comments. Static stuff added. Register colors.
v1.0 -- Perf is good! Tons of bugfixes. Quality software. http://qira.me/
v0.9 -- Function indentation. haddrline added(look familiar?). Register highlighting in hexdump.
v0.8 -- Intel syntax! Shipping CDA(cda a.out) and experimental PIN backend. Bugfixes. Windows support?
v0.7 -- DWARF support. Builds QEMU if distributed binaries don't work. Windows IDA plugin.
v0.6 -- Added changes before webforking. Highlight strace addresses. Default on analysis.
v0.5 -- Fixed regression in C++ database causing wrong values. Added PowerPC support. Added "A" button.
v0.4 -- Using 50x faster C++ database. strace support. argv and envp are there.
v0.3 -- Built in socat, multiple traces, forks(experimental). Somewhat working x86-64 and ARM support
v0.2 -- Removed dependency on mongodb, much faster. IDA plugin fixes, Mac version.
v0.1 -- Initial release


== UI ==

At the top, you have 4 boxes, called the controls.
  Blue = change number, Grey = fork number
  Red = instruction address(iaddr), Yellow = data address(daddr)

On the left you have the vtimeline, this is the full trace of the program.
  The top is the start of the program, the bottom is the end/current state.
  More green = deeper into a function.
  The currently selected change is blue, red is every passthrough of the current iaddr
  Bright yellow is a write to the daddr, dark yellow is a read from the daddr.
  This color scheme is followed everywhere

Below the controls, you have the idump, showing instructions near the current change
Under that is the regviewer, datachanges, hexeditor, and strace, all self explanatory.


== Mouse Actions ==

Click on vtimeline to navigate around
Right click forks to delete them

Click on data(or doubleclick if highlightable) to follow in data
Right click on instruction address to follow in instruction


== Keyboard Shortcuts in web/client/controls.js ==

j -- next invocation of instruction
k -- prev invocation of instruction

u -- next toucher of data
i -- prev toucher of data

m -- go to return from current function
, -- go to start of current function

z -- zoom out max on vtimeline

l -- set iaddr to instruction at current clnum

left  -- -1 fork
right -- +1 fork
up    -- -1 clnum
down  -- +1 clnum

esc -- back

shift-c -- clear all forks

n -- rename instruction
shift-n -- rename data
; -- add comment at instruction
shift-; -- add comment at data

g -- go to change, address, or name

c -- analyze code at iaddr
p -- analyze function at iaddr

== Installation on Windows (experimental) ==

Install git
Install python 2.7.8
Install pip

Run install.bat


== Using CDA ==

Pass either --cda to QIRA, or just call "cda binary"

The binary must have DWARF data, and the source files must exist on the system

If you used --cda, you have to go to localhost:3002/cda
Everything should be intuitive, except press '/' to regex search


== Session state ==

clnum -- Selected changelist number
forknum -- Selected fork number
iaddr -- Selected instruction address
daddr -- Selected data address

cview -- Viewed changelists in the vtimeline
dview -- Viewed window into data in the hexeditor
iview -- Viewed address in the static view

max_clnum -- Max changelist number for each fork

dirtyiaddr -- Whether we should update the clnum based on the iaddr or not

flat -- if we are in flat view