Recovering a scan that was deleted in Web UI
Is it possible to recover/undelete a scan that was deleted via the arachni Web UI?
Also, I tried importing scans from v1.3.1 to v1.3.2 but it kicked back an error stating that scans cannot be imported from different versions; is that correct?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac
Support Staff 1 Posted by Tasos Laskos on 23 Oct, 2015 07:30 PM
Are you trying to import scans (like from AFR reports) or the previous DB?
If it's the latter you can try removing these 2 lines from the script at
system/arachni-ui-web/script/import.2 Posted by Alessandro Di G... on 23 Oct, 2015 08:20 PM
The latter - trying to import the previous DB of scans into an updated instance. I tried your recommendation, but I don't see the old scans in the new console.
What about recovering an accidentally deleted scan, is it possible in any way? (even at the file system level?)
Support Staff 3 Posted by Tasos Laskos on 24 Oct, 2015 02:18 AM
No unfortunately not, everything is in the DB.
4 Posted by Alessandro Di G... on 24 Oct, 2015 02:28 AM
Bummer about deleted scans being unrecoverable.
Also, the previous DB import no longer throws the error, but it doesn't seem to accomplish the task - the previous scans don't appear in the new instance.
Thanks for the prompt responses!
Support Staff 5 Posted by Tasos Laskos on 24 Oct, 2015 02:29 AM
Were you using PG or the default SQLite?
6 Posted by Alessandro Di G... on 24 Oct, 2015 02:31 PM
Default SQlite DB; is there a log file generated by the import script that might explain what is happening?
For the deleted scans, I tried browsing the DB with SQLite Browser, but you're right, those scan entries are gone now. (I was hoping they had just been removed from the index and that the data entries would still be there)
Support Staff 7 Posted by Tasos Laskos on 24 Oct, 2015 02:34 PM
No there's not, what output does it print?
8 Posted by Alessandro Di G... on 24 Oct, 2015 02:46 PM
See
arachni_web_scan_importscript output below:N.B. Afterwards, I ran the
arachni_web_importafter this to import all settings, and it seems to have fixed it. Originally, I wanted to import the scans only, but it seems by importing all the settings, the scan import issue was fixed in the process. (Fulfilled pre-requisites/dependencies, I guess?)Support Staff 9 Posted by Tasos Laskos on 24 Oct, 2015 02:48 PM
No,
arachni_web_scan_importimports a scan from an AFR file,arachni_web_importimports the DB of the package you specified.10 Posted by Alessandro Di G... on 24 Oct, 2015 03:00 PM
OK, my mistake; I thought it only imported the scan portion of the DB, rather that the whole DB.
I see now on the GitHub page it's described clearly. I didn't see anything at the CLI about AFR files when I was trying it though.
Will RTFM more carefully next time.
Support Staff 11 Posted by Tasos Laskos on 24 Oct, 2015 03:28 PM
No worries, it happens.
Cheers
Tasos Laskos closed this discussion on 24 Oct, 2015 03:28 PM.