I need some help here. I have an infected pendrive (unknown virus), what this virus is doing is just move my files to a hidden folder (.Trashes) and make links to those files (Actually the links doesn't work), also a weird visual basic script file keeps appearing in the hidden folder (There was too a .js file but this one didn't respawn), it's just a bunch of calls to function that doesn't seem to be anywhere.
First I tried just to erase those files and links. That didn't work and the script appeared again, moved my files to the hidden folder and created links again (almost instantly after erasing the file)
After that I tried to format the pendrive (Problem persisted).
I connected it to an old PC with old Debian (I never use this computer so no problem compromising it) with no internet connection and it started to do weird things, like menus not working properly and bash unusable after some commands (Changing to another runlevel and going back to the current runlevel solve the problem temporally). When I tried to login for example in runlevel 6 I couldn't login cause it put ^@ randomly when I tried to enter the username/password
For all those things I suspect that it has a rootkit installed which keeps recovering the virus. Is there a way to erase this rootkit? Could it be dangerous to connect the pendrive to a VM or Live CD in my current machine?