Skip to content
New issue

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

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

Already on GitHub? # to your account

fuzzing with Tenda_AC15: AttributeError: 'int' object has no attribute 'fileno' #784

Closed
kirito999 opened this issue Apr 26, 2021 · 5 comments

Comments

@kirito999
Copy link

*Describe the bug
I can not run fuzz_tendaac15_httpd.py in /qiling/examples/fuzzing/tenda_ac15

Sample Code
I use https://github.com/qilingframework/qiling/tree/master/examples/fuzzing/tenda_ac15 and https://kabeor.cn/IoT%E5%9B%BA%E4%BB%B6%E6%8F%90%E5%8F%96%E5%B9%B6%E4%BD%BF%E7%94%A8qiling%E8%BF%9B%E8%A1%8Cfuzz/#IoT-Fuzz

Expected behavior
qiling@ubuntu:~/projects/qiling/examples/fuzzing/tenda_ac15$ python3 fuzz_tendaac15_httpd.py afl_inputs/a

Traceback (most recent call last):
File "/home/qiling/.local/lib/python3.6/site-packages/qiling/os/posix/posix.py", line 281, in load_syscall
ret = syscall_hook(self.ql, *arg_values)
File "/home/qiling/.local/lib/python3.6/site-packages/qiling/os/posix/syscall/select.py", line 40, in ql_syscall__newselect
tmp_r_fd, tmp_r_map = parse_fd_set(ql, _newselect_nfds, _newselect_readfds)
File "/home/qiling/.local/lib/python3.6/site-packages/qiling/os/posix/syscall/select.py", line 30, in parse_fd_set
fd_list.append(ql.os.fd[idx].fileno())
AttributeError: 'int' object has no attribute 'fileno'
Ran once without AFL attached.

Screenshots

image

Additional context
I have get snapshot.bin

what should I do
thx

@xwings
Copy link
Member

xwings commented Apr 27, 2021

Can you follow the video ? its in #134

@kirito999

This comment has been minimized.

@kirito999
Copy link
Author

thx:),I think I should edit the .py to run -U mode.

@dark-lbp
Copy link
Contributor

Is this issue solved?

@kirito999
Copy link
Author

Is this issue solved?

sry, I can't solve the issue. Because I am interested in fuzz but I am poor in RE.

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

No branches or pull requests

3 participants