Comments (3)
from radare2-r2pipe.
This is fixed in git already. Will do a new release when i get my hands on a keyboard today
…
On 15 Dec 2018, at 18:05, a1ext @.***> wrote: I have the following python code (test_r2lang_pipe.py) to check is pipe connection with radare2 works: from future import print_function import sys # sys.path.append(r't:\radare2-r2pipe\python') print('python ver:', sys.version) import r2pipe r = r2pipe.open() r.cmd('aa') print(r.cmd('pd 10')) When I run it on Windows with Python 2 it works well: # radare2 -i t:\radare2-r2pipe\python\examples\test_r2lang_pipe.py rabin2.exe python ver: 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] [x] Analyze all flags starting with sym. and entry0 (aa) / (fcn) entry0 373 | entry0 (int arg5, int arg2); | : ; var int local_8h @ rsp+0x8 | : ; var int local_10h @ rsp+0x10 | : ; var int local_20h @ rsp+0x20 | : ; var int local_40h @ rsp+0x40 | : ; var int local_48h @ rsp+0x48 | : ; arg int arg5 @ r8 | : ; arg int arg2 @ rsi | : 0x14001a6f4 4883ec28 sub rsp, 0x28 ; '(' | : 0x14001a6f8 e85b050000 call 0x14001ac58 | : 0x14001a6fd 4883c428 add rsp, 0x28 ; '(' \=< 0x14001a701 e972feffff jmp 0x14001a578 0x14001a706 cc int3 0x14001a707 cc int3 0x14001a708 4053 push rbx 0x14001a70a 4883ec20 sub rsp, 0x20 0x14001a70e 488bd9 mov rbx, rcx 0x14001a711 33c9 xor ecx, ecx -- Initial frame selected; you cannot go up. [0x14001a6f4]> q But when I run it with Python 3 it fails: # set PATH=c:\Python36x64;%PATH% # radare2 -i t:\radare2-r2pipe\python\examples\test_r2lang_pipe.py rabin2.exe python ver: 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 03:37:03) [MSC v.1900 64 bit (AMD64)] Invalid Handle Value Could not open pipe Traceback (most recent call last): File "t:\radare2-r2pipe\python\examples\test_r2lang_pipe.py", line 10, in <module> print('
aa` returned:', r.cmd('aa')) File "c:\Python36x64\lib\site-packages\r2pipe\open_base.py", line 197, in cmd res = self._cmd(cmd, **kwargs) AttributeError: 'open' object has no attribute '_cmd' — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
which one?
from radare2-r2pipe.
Fixes #64 as well
from radare2-r2pipe.
Related Issues (20)
- Python: Opening a file in a subdirectory called "tcp" raises exception
- Add Meson/Ninja build system support
- Error after r2pm -i r2pipe-py HOT 1
- pip install r2pipe fails on urllib *SOLUTION* HOT 3
- Running r2pipe Python in batch HOT 2
- How do I automatically interact with the process being debugged through standard IO? HOT 1
- macOS Big Sur "pip install r2pipe" not working HOT 3
- qt code example will not link properly with radare2 HOT 2
- Cannot find R2PIPE_IN or R2PIPE_OUT environment HOT 2
- [python3] r2.quit() hangs execution HOT 3
- python r2pipe is suddenly failing on the binary info command `iIj` HOT 12
- Redirecting stderr HOT 5
- test-pipe.c:1:10: fatal error: r_socket.h: No such file or directory HOT 5
- Python: Using r2pipe for analysing memory dump of an android process HOT 7
- Cant find radare2rc configuaration file HOT 3
- The outputs of 'cmd()' is empty on Windows 10 HOT 19
- ioplugin and map file HOT 3
- r2pipe doesn't handle ASM searching well of patterns. HOT 1
- r2pipe Python is slow when processing large results HOT 4
- R2pipe truncates R2 output that contains multiple \x00 characters HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from radare2-r2pipe.