Omnimaga
General Discussion => Technology and Development => Computer Usage and Setup Help => Topic started by: Sorunome on November 09, 2013, 06:10:11 pm
-
Ok, what the hell did just happen, i was chatting on skype and suddenly the whole content of my desktop folder was....GONE! It isn't even in the trash bin or anywhere i can think of!
I am running an HDD recovery program atm, but HOW THE HELL can that happen!
I am using archlinux, yes, i am updating it on a regular basis!
I just hope i manage to recover my programming projects....... :(
Should I change my comp password/other passwords/whatever? Did i get hacked? D:
-
Were you skyping with a russian hacker/spy? It happens to me all the time.
-
no, i was skyping, text only i should add, with a friend in the netherlands :P
-
This sucks. I wonder if it's possible to get a virus or get hacked in Linux? If it's possible to access someone's computer remotely, maybe someone had your login info? Else, I can't think of anything, especially if just the desktop folder vanished. If it was many files, I would suspect hard drive-related issues.
Or maybe a security exploit in one of the software you used?
-
well, i have ssh running and a webserver (nginx), but both are actually secure. And my password is also a secure password, plus my router doesn't redirect port 22 to my comp.
-
This is really very annoying! You need to make sure you are not using a hacked-skype version. I've heard of similar problems happening before, for instance here: http://community.skype.com/t5/Mac/Skype-on-Linux-hacked-major-security-flaw/td-p/1562675 .
Good luck with your hard drive recovery. :(
-
well, i have ssh running and a webserver (nginx), but both are actually secure. And my password is also a secure password, plus my router doesn't redirect port 22 to my comp.
Do you use this password elsewhere, though? A SMF admin's password was guessed on a different forum that was filled with exploits and since that admin used the same password on SMF too, the hacker followed him then stole a copy of the database and passwords.
-
well, i have ssh running and a webserver (nginx), but both are actually secure. And my password is also a secure password, plus my router doesn't redirect port 22 to my comp.
Do you use this password elsewhere, though? A SMF admin's password was guessed on a different forum that was filled with exploits and since that admin used the same password on SMF too, the hacker followed him then stole a copy of the database and passwords.
No, that is the only instant of that password.
-
Ok, so I ran now file recovery, i still have to look through all the recovered files though, tones of them are trash anyways, like old browser cache etc.
EDIT: does somebody have/want to make such a prog?
Display all txt and h files in a folder after another, if i hit r it deletes it and if i hit n it keeps it? That way it would be far easier to look those files through
-
well, i'm afraid there aren't, unfortunately, any free lunches out there! you'll need to either google for it or write your own (probably faster, i dunno). It may take a while but it may be worth it. keep being resilient and eventually you'll manage to recover the important stuff. I been there too (sort of, my brand new HD simply crashed - but only some of the disk sectors were damaged). i went 'crazy' for a couple of days. After the disaster i keep backing-up the important (programming) stuff much more often.
-
Sorunome, check the log file auth.log for anything suspicious.
-
well, i'm afraid there aren't, unfortunately, any free lunches out there! you'll need to either google for it or write your own (probably faster, i dunno). It may take a while but it may be worth it. keep being resilient and eventually you'll manage to recover the important stuff. I been there too (sort of, my brand new HD simply crashed - but only some of the disk sectors were damaged). i went 'crazy' for a couple of days. After the disaster i keep backing-up the important (programming) stuff much more often.
nuuu, somebody want to make one for me as i already have like almost no time on the comp recently due to IRL stuff? (it'll be better in december)
Sorunome, check the log file auth.log for anything suspicious.
Doesn't exist over here O.O
-
If someone finds or ends up making that kind of program, I wouldn't mind giving it a shot.
I had a 32gb drive (more than halfway full) corrupt on me about a year ago and there's still a huge "recovery" folder on my windows partition :P
-
I'll try to write a simple program like that, but I don't know yet if it'll work.
EDIT: I attached the program to my post. It is tested and worked, but as I wrote it as fast as possible, it could be a bit unstable, use at your own risk.
How to use it: First, fill in the extensions of the files you want to view in the textboxes (you can use up to 10 extensions, leave the ones you aren't using blank).
Then, use the file shooser to select the directory in which you want to look for files.
When you click open on the file shooser, the window will close and a new window will open, which displays the name of the first file with a correct extension, with the options to keep or delete it. Keep moves on to the next file, delete deletes it and moves on to the next one after that. Once it has reached the last file, the program will exit.
EDIT2: I have updated the program. It now looks trough 1 level of subfolders and it prints the first 50 lines of each file in the console.
-
would something like this work
import os, sys, glob, shutil
dest='/home/'#leave trailing / or it will break
for f in glob.glob("*.h"):
keep=input("Do you want to keep "+f)
if keep=='r' or keep=='n':
os.remove(f)
else if keep='k' or keep=='y':
shutil.copy(f,dest+f)
else:
print("You need to use a valid command y/k keep or r/n remove")
I haven't tested it yet so I make no promise about it working
-
guys, one of the key things was echoing the content because the names on recoverd files are all only numbers.........(still thanks :3 )
It would also be cool if it worked recrusive :D
-
import os, sys, glob, shutil, fnmatch
matches = []
for root, dirnames, filenames in os.walk(sys.argv[1]):
for filename in fnmatch.filter(filenames, '*.h'):
matches.append(os.path.join(root, filename))
for filename in fnmatch.filter(filenames, '*.txt'):
matches.append(os.path.join(root, filename))
print(matches)
dest=sys.argv[2]
for f in matches:
keep=input("Do you want to keep "+f)
if keep=='':
keep = old
if keep=='r' or keep=='n':
os.remove(f)
elif keep=='k' or keep=='y':
print(dest+os.path.split(f)[1])
shutil.copy(f,dest+os.path.split(f)[1])
else:
print("You need to use a valid command y/k keep or r/n remove")
old = keep
recursive and tested. It will also remember your last answer so you can just press enter to continue going with keep/remove without having to retype.
EDIT: the first argument is the directory to search through the second is where to put them.
-
Thank you, but i am already using ben_gs one D:
-
/me didn't realize ben_g had posted one
-
Ok, how the hell is this possible, when doing a backup of my other files i randomley looked at the terminal output - and aparently my desktop got moved into my jedi academy source folder O.O HOW THE HAY is that possible O.O
Anyways, the good news is that i still have all the files then! :D
-
Ok, how the hell is this possible, when doing a backup of my other files i randomley looked at the terminal output - and aparently my desktop got moved into my jedi academy source folder O.O HOW THE HAY is that possible O.O
Anyways, the good news is that i still have all the files then! :D
I told'ya, after a couple of scary days you just might get lucky! Good to hear. Now you can get some extra sleep.
-
Ok, how the hell is this possible, when doing a backup of my other files i randomley looked at the terminal output - and aparently my desktop got moved into my jedi academy source folder O.O HOW THE HAY is that possible O.O
Anyways, the good news is that i still have all the files then! :D
I told'ya, after a couple of scary days you just might get lucky! Good to hear. Now you can get some extra sleep.
Sleep? What is that?
Anyways, it is still kinda wierd that it somehow got moved there.
Well, i'm backing up more now anyways, seing I just bought a 2TB hard drive for that purpose :)
-
/me doesn't backup, as his calc folder is synced to DropBox :P
-
I don't use cloud services, sorry, I just don't feel good by giving random people all my files :P
-
Lol. Dropbox is pretty reliable AFAICT. I even trust Google. Seriously, what would they do with your data ? It's just processed by software, and thay don't sell it to more random people. ;)
-
id, but i guess i should start using the 20gb backup web-space i have that comes with my vps for the most important data, lol
-
Wow I'm glad that you got your files back. It seems weird. Backup more often in the future in case this happens again (or worse, the files automatically get deleted for real)