threat9 / routersploit

Exploitation Framework for Embedded Devices
Other
12.12k stars 2.31k forks source link

Inappropriate ioctl for device #752

Closed BananaGeneral closed 1 year ago

BananaGeneral commented 3 years ago

Steps to Reproduce (for bugs)

  1. python3 rsf.py

Your Environment

Current Behavior

sh-3.2# python3 rsf.py 
Traceback (most recent call last):
  File "/Users/MyUser/routersploit/rsf.py", line 29, in <module>
    routersploit(sys.argv)
  File "/Users/MyUser/routersploit/rsf.py", line 21, in routersploit
    rsf = RoutersploitInterpreter()
  File "/Users/MyUser/routersploit/routersploit/interpreter.py", line 211, in __init__
    super(RoutersploitInterpreter, self).__init__()
  File "/Users/MyUser/routersploit/routersploit/interpreter.py", line 51, in __init__
    self.setup()
  File "/Users/MyUser/routersploit/routersploit/interpreter.py", line 67, in setup
    readline.read_history_file(self.history_file)
OSError: [Errno 25] Inappropriate ioctl for device

Expected Behavior

ariyako commented 3 years ago

got the same problem

BananaGeneral commented 2 years ago

Any developments on this?

gleb4inka commented 1 year ago

@BananaGeneral

  1. pip install gnureadline
  2. edit routersploit/interpreter.py:

import readline to import gnureadline as readline

BananaGeneral commented 1 year ago

@BananaGeneral

1. `pip install gnureadline`

2. edit `routersploit/interpreter.py`:

import readline to import gnureadline as readline

You are the real mvp