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

TypeError: boofuzz.fuzzable.Fuzzable.__init__() got multiple values for keyword argument 'fuzzable' #591

Closed
kfr-ma opened this issue Jan 4, 2022 · 1 comment · Fixed by #592
Labels

Comments

@kfr-ma
Copy link
Contributor

kfr-ma commented Jan 4, 2022

Report

Hi everybody ;

When i try to run my boo fuzz program , i get this error :

TypeError: boofuzz.fuzzable.Fuzzable.init() got multiple values for keyword argument 'fuzzable'

I am using Python 3.9.9 .

Below my test program :

#!/usr/bin/env python

from boofuzz import *

def main():
session = Session(
target=Target(
connection=SocketConnection("192.168.98.147", 69, proto='udp')),sleep_time = 3)

s_initialize("Request")
s_binary("0002")
s_string("filename.txt", fuzzable=True)
s_binary("00")
s_string("netascii", fuzzable=True)
s_binary("00")

session.connect(s_get("Request"))
session.fuzz()

if name == "main":
main()

Thx for your help.

Expected behavior

start fuzzing

Actual behavior

[2022-01-04 11:10:12,344] Info: Web interface can be found at http://localhost:26000
Traceback (most recent call last):
File "/home/kali/src/boofuzz/examples/toto.py", line 21, in
main()
File "/home/kali/src/boofuzz/examples/toto.py", line 11, in main
s_binary("0002")
File "/home/kali/.local/lib/python3.9/site-packages/boofuzz/init.py", line 596, in s_binary
blocks.CURRENT.push(Static(name=name, default_value=parsed, fuzzable=False))
File "/home/kali/.local/lib/python3.9/site-packages/boofuzz/primitives/static.py", line 16, in init
super(Static, self).init(name=name, default_value=default_value, fuzzable=False, *args, **kwargs)
TypeError: boofuzz.fuzzable.Fuzzable.init() got multiple values for keyword argument 'fuzzable'

Steps to reproduce the problem

boofuzz script

#!/usr/bin/env python

from boofuzz import *

def main():
    session = Session(
        target=Target(
            connection=SocketConnection("192.168.98.147", 69, proto='udp')),sleep_time = 3)

    s_initialize("Request")
    s_binary("0002")
    s_string("filename.txt", fuzzable=True)
    s_binary("00")
    s_string("netascii", fuzzable=True)
    s_binary("00")
    
    session.connect(s_get("Request"))
    session.fuzz()
   
if __name__ == "__main__":
    main()

boofuzz version

0.4.0

Python version

3.9

Platform

Linux

Anything else?

No response

@SR4ven
Copy link
Collaborator

SR4ven commented Jan 8, 2022

Thanks for your report @kfr-ma!

I've uploaded a potential fix in #592, could you test if these changes fix your problem please?

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

Successfully merging a pull request may close this issue.

2 participants