dhondta / dronesploit

Drone pentesting framework console
GNU General Public License v3.0
1.44k stars 245 forks source link

Cannot delete existing project, or create multiple projects. #30

Closed amritabithi closed 2 years ago

amritabithi commented 2 years ago

The last remaining bug I have seen is that I seem to be unable to create more than one project, and unable to delete an existing project. The project files themselves are working normally, just the create and delete functions are not working.

Below is a copy of my command line output, with me first trying to delete an existing project, and then trying to create a new one using "select newproject" which should create a new one according to the help file:

dronesploit > show projects                                                                                                                   

Existing projects
=================

   Name      
   ----      
   myproject 

dronesploit > delete myproject                                                                                                                
[-] 'Path' object has no attribute 'rmtree'
Traceback (most recent call last):
  File "/home/myuser/.local/lib/python3.8/site-packages/sploitkit/core/console.py", line 361, in run
    obj.run(*args)
  File "/home/myuser/.local/lib/python3.8/site-packages/sploitkit/base/commands/project.py", line 62, in run
    self.workspace.joinpath(project).rmtree()
AttributeError: 'Path' object has no attribute 'rmtree'
dronesploit > select newproject 

Command syntax: select project (invalid value)

Thank you again for taking the time to fix this so quickly, I want to test some new drone models and see if I can add them but am still learning to run python again, so knowing my starting environment is all set up correctly is a great help :)

dhondta commented 2 years ago

@amritabithi You can pip install --upgrade dronesploit. Thank you very much for raising this issue.

amritabithi commented 2 years ago

Awesome, I tested every combination of deleting and adding with or without existing projects, etc., and it works great! Thank you!

amritabithi commented 2 years ago

I guess I spoke too soon, there is one issue which is trying to select an existing project gives the error:

Command syntax: select project (a project with the same name already exists)

dhondta commented 2 years ago

@amritabithi Hum... you can (re)-pip install --upgrade dronesploit. :-s Thank you very much for checking this issue. ;-)