My vps was confirmed hacked, Ubuntu 16.04 LTS (Thanks for answering in my post My previous post).
Now I have created new vps and move my site to new VPS.
But I don't delete my hacked vps, i preserve it to learn why i can got hacked.
My Question is : where is file/folder execute by python3 /~.pid -x -b
?
Thanks for your help.
It's a file located at
/
(root) named~.pid
.To create the same file in my root directory:
And now let us to look for it at
/
:Write something within it:
Look what is inside:
And what is the type of file:
If you can't state the file using
ls
or anything else so it has been removed. You can create a file, run it and then remove it. There is still a version of that file in the memory (RAM) being used by python in your case but it has been removed from filesystem so you can't find it.If you kill the process it should go away. however it depends on the malware. It might get recreated by another process.