File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2,24 +2,25 @@ BAP python bindings
22
33# Installing  
44
5- Install python bindings with pip (after you installed ` bap ` ):
5+ Install python bindings with pip (after you have  installed ` bap ` ):
66
77``` bash 
88$ pip install bap
99``` 
1010
1111Alternatively you can just copy paste files into your project, or clone it
12- with git-subtree, or whatever.. .
12+ with git-subtree.
1313
1414
1515## Installing low-level bindings  
1616
17- An optional low-level interface, called [ rpc]  depends on requests, so
18- install [ requests]  package from pip and ` bap-server `  from opam:
17+ An optional low-level interface, called [ rpc]  depends on the requests
18+ library and the bap-server package. To use it, you need to install
19+ them from pip and opam correspondigly:
1920
2021``` bash 
2122$ pip install bap[rpc]
22- $ opam install bap
23+ $ opam install bap-server 
2324``` 
2425
2526## Installing development version  
@@ -34,8 +35,7 @@ pip install git+git://github.com/BinaryAnalysisPlatform/bap-python.git
3435
3536` ` ` python
3637>>> import bap 
37- >>> proj = bap.run(' /bin/true'  , [' --symbolizer=ida'  ]) 
38- >>> text = proj.sections[' .text'  ] 
38+ >>> proj = bap.run(' /bin/true'  ) 
3939>>> main = proj.program.subs.find(' main'  ) 
4040>>> entry = main.blks[0] 
4141>>> next = main.blks.find(entry.jmps[0].target.arg) 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments