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

***Fix*** tostring() error #46

Open
Beauxrel opened this issue Oct 9, 2023 · 4 comments
Open

***Fix*** tostring() error #46

Beauxrel opened this issue Oct 9, 2023 · 4 comments

Comments

@Beauxrel
Copy link

Beauxrel commented Oct 9, 2023

Ubuntu 22.04

When this issue occurs

File "/home/landon/.local/lib/python3.10/site-packages/scapy/arch/linux.py", line 195, in get_alias_address
names = names.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'

Replace

names = names.tostring()
->
names = names.tobytes()

in this file
/home/{username}/.local/lib/python3.10/site-packages/scapy/arch/linux.py

@cpoore1
Copy link
Collaborator

cpoore1 commented Oct 9, 2023

Someone brought this up a few months back and I thought I put in a fix... but I don't see it there. I'll check to see if this happens on a clean install and I might have to add a warning describing the fix or force the newer version of scapy with the fix as part of the install. I'll comment here with progress soon.

@Beauxrel Beauxrel reopened this Oct 17, 2023
@Beauxrel
Copy link
Author

Oops, closed too soon. Alright I will wait for your reply

@cpoore1
Copy link
Collaborator

cpoore1 commented Oct 20, 2023

I tried the install on Ubuntu 22.04.2 and noticed a bunch of problems in the installer:

  • The sed command in trackerjacker didn't take hold for fixing the tobytes() problem (I'll move this to under Scapy because it is now needed). sudo sed -i 's/tostring/tobytes/g' /usr/local/lib/python3.10/dist-packages/scapy/arch/linux.py
  • Metasploit didn't download.
  • There's a matplotlib import error that somehow gets fixed by reinstalling it. I'll have to see what lines are breaking it.

I'll make a couple one-time exceptions in the installer script for these things when it comes to the differences between 22.04.1 and 22.04.2 and add an extra 22.04.2 option in the first GUI.

@cpoore1
Copy link
Collaborator

cpoore1 commented Nov 13, 2023

I added options for Ubuntu 22.04.1, 22.04.2, and 22.04.3 to the installer. I commented out the matplotlib line because I think the default version caused problems with yellowbrick. It gets downloaded from another program down the line in "Miscellaneous Dependencies" and it no longer causes an error after commenting it out. I added the scapy fix and tested it on 22.04.2. There are still some warnings, but the FISSURE Dashboard launches with all the minimum requirements checked. The versions for everything will have to be reined in someday but it becomes increasingly difficult as the number of included programs grows.

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

2 participants