Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOErrors after running a command #6

Open
ngo opened this issue Jul 19, 2019 · 1 comment
Open

IOErrors after running a command #6

ngo opened this issue Jul 19, 2019 · 1 comment

Comments

@ngo
Copy link

ngo commented Jul 19, 2019

I've installed mona.py as per instructions, but had to build x64dbgpy from sources (because snapshot artifacts are not available, see x64dbg/x64dbgpy#35).
Now after every command with mona I get an IOError, e.g

import mona
mona.mona('modules')

===>

[+] Command used:
!mona modules

---------- Mona command started on 2019-07-19 09:04:28 (v2.0, rev 577) ----------
[+] Processing arguments and criteria
    - Pointer access level : X
[+] Generating module info table, hang on...
    - Processing modules
    - Done. Let's rock 'n roll.
-----------------------------------------------------------------------------------------------------------------------------------------
 Module info :
-----------------------------------------------------------------------------------------------------------------------------------------
<SNIP>
<b>********************************************************************************</b>
<b>Traceback (most recent call last):</b>
<b>  File "C:\Users\ngo\Desktop\x64dbg\release\x32\plugins\x64dbgpy\mona.py", line 18391, in main</b>
<b>    commands[command].parseProc(opts)</b>
<b>  File "C:\Users\ngo\Desktop\x64dbg\release\x32\plugins\x64dbgpy\mona.py", line 11450, in procShowMODULES</b>
<b>    showModuleTable("",modulestosearch)</b>
<b>  File "C:\Users\ngo\Desktop\x64dbg\release\x32\plugins\x64dbgpy\mona.py", line 5825, in showModuleTable</b>
<b>    dbg.log(tline)</b>
<b>  File "C:\Users\ngo\Desktop\x64dbg\release\x32\plugins\x64dbgpy\x64dbgpylib.py", line 862, in log</b>
<b>    pykd.dprintln(self.toAsciiOnly(message), showdml)</b>
<b>  File "C:\Users\ngo\Desktop\x64dbg\release\x32\plugins\x64dbgpy\pykd.py", line 197, in dprintln</b>
<b>    print str</b>
<b>  File "C:\Users\ngo\Desktop\x64dbg\release\x32\plugins\x64dbgpy\x64dbgpy\hooks.py", line 44, in write</b>
<b>    self.__original_stream.write(text)</b>
<b>IOError: [Errno 9] Bad file descriptor</b>
<b></b>
<b>********************************************************************************</b>

Not sure that it is relevant, but

@ngo
Copy link
Author

ngo commented Jul 19, 2019

Removing the line self.__original_stream.write(text) from hooks.py mitigates the issue, but I'm not sure what happens to the original file descriptor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant