Monday, August 5, 2019

HOW TO WRITE A CODE TO PRINT ONLY EVEN NUMBER IN JAVA

Java is a general purpose programming language. It is one of the best programming language used from the day it was founded till date. Java is not just a programming language, it is the most intellectual language for beginner, professional and also developers in the aspect of software. 

We're going to discuss on how to write a simple code to display only even numbers. Now let's get started.

We're are using a "for loop"  it allows you to efficiently program a loop that needs to execute a specific number of times.

Now type:
public class evenNo {
public static void main(String[] args) {

A  for loop should have 3 parts
  • Initialization: e.g int x = 1;
  • Condition: e.g x <= 5;
  • increment/ decrements: e.g x++ or x--
Now let's apply this to our program

for (int x = 0; x <= 20; x = x+2) {
System.out.println(x);

N/B: The program should look like this



The output or result will be:
0
2
4
6
8
10 till 20

TOP TEN WEBSITE TO LEARN JAVA PROGRAMMING FROM THE BASICS TO PROFESSIONALISM

If you're interested in JAVA programming you can learn from the basics to professionalism from the following websites. Before we continue, I want you to know the importance of JAVA in the development of computer gadgets. JAVA has been a general purpose programming language that can be used to write any program of one's choice. So if you're interested in JAVA you can start from here also this article is also for middle class learner who are not yet a professional.

This are the top 10 site to learn JAVA PROGRAMMING as a beginner:
  1. sololearn.com
  2. udemy.com
  3. coursera
  4. skillshare.com
  5. codeacademy.com
  6. codementor
  7. CodeChef
  8. edx
  9. StackOverFlow
  10. udacity.com
 With this websites, you can learn to become a professional. Even if you are not interested in JAVA, you can also learn other programming and also mark up languages there.
 

Friday, August 2, 2019

HOW TO CREATE AN ADDITION CALCULATOR IN JAVA- FOR BEGINNERS

This article is mostly useful for beginners in JAVA. Java is one of the most useful and interactive language you can ever use while programming. The codes are easy to learn and after mastering them, you can get that job you're competing for. This article is gonna teach us how to program a calculator that can calculate the Addition of two numbers. It is easy just be careful and follow this steps.

First Step: type this 
import java.util.Scanner

Second Step: Name your class like this
public class addition {

Third Step: give a method (Every java program should start with the main method)
public static void main(String[] args) {

Fourth Step: Declare your Scanner to accept User's Input
Scanner num1 = new Scanner(System.in);
Now define a variable of integer like this
int numA = num1.nextInt();

Fifth Step: Declare your Scanner again
Scanner num2= new Scanner(System.in);
Now define another integer variable for the second value
int numB =num2.nextInt();

Sixth Step: Define a third variable to display the answer
int numC = numA + numB;
Now type:
System.out.println(numC);

N/B: Be careful of the case of the code and also the characters used or else your program will not run.
After you are done with the program your codes should look like the one in this photo








Seventh Step: You're true with your codes so you can now run your program by saving as .java.





Thursday, August 1, 2019

How to write a Hello World program in java

Writing a Hello World program in Java is the simplest way to start coding in java.

Firstly, what you have to do is to choose a class like this
step 1: class MyClass {
N/B: It is not a must for your class to be "MyClass" it can be "HelloWorld"
Step 2: type this code
public static void main(String[] args) {
N/B: Be careful of the case because the codes are case sensitive.
Step 3: type this code
System.out.println("Hello World");
N/B: Try to notice the case of the "System" and also the semi-colon ; at the end of the code.





It is advisable for you to use notepad++ for the code and change the language to java. Also save the program with the name of the class e.g the name of our own class is MyClass it is advisable for you to save with that and then add ".java" at the end while saving. To run the program, you must have installed Java Development  Kit (JDK) or else it won't run.

Tuesday, July 30, 2019

HOW TO CREATE A PASSWORD THAT WILL BE HARD TO CRACK

How to create a password that is hard to crack In this post, we have listed 10 password cracking tools. These tools try to crack passwords with different password cracking algorithms. Most of the password cracking tools are available for free. So, you should always try to have a strong password that is hard to crack by these password cracking tools. These are few tips you can try while creating a password. The longer the password, the harder it is to crack: Password length is the most important factor. If you select a small password, password cracking tools can easily crack it by using few words combinations. A longer password will take a longer time in guessing. You’re your password at least 8 characters long. Always use a combination of characters, numbers and special characters: This is another thing which makes passwords hard to crack. Password cracking tools try the combination of one by one. Have a combination of small characters, capital letters, and special characters. Suppose if you have only numbers in your password. Password cracking tools only need to guess numbers from 0-9. Here only length matters. But having a password combination of a-z, A-Z, 0-9 and other special characters with a good length will make it harder to crack. This kind of password sometimes takes weeks to crack. Variety in passwords: One important thing you must always take care. Never use same password everywhere. Cyber criminals can steal passwords from one website and then try it on other websites too. In case you are not sure about the strength of your password, you can check it from variety of online tools available for free. What to avoid while selecting your password There are a few things which were very common a few years back and still exist. Most of the password cracking tools start from there. Passwords that fall into this category are most easy to crack. These are the few password mistakes which you should avoid: Never use a dictionary word Avoid using your pet’s name, parent name, your phone number, driver’s license number or anything which is easy to guess. Avoid using passwords with sequence or repeated characters: For Ex: 1111111, 12345678 or qwerty, asdfgh. Avoid using passwords that fall in worst password list. Every year, data analysis companies publish the list of worst passwords of the year from analyzing the leaked password data. The top 25 passwords on the 2017 list. 123456 Password 12345678 qwerty 12345 123456789 letmein 1234567 football iloveyou admin welcome monkey login abc123 The top 11 worst passwords of 2012: password 123456 12345678 abc123 qwerty monkey letmein dragon 111111 baseball iloveyou

TOP TEN SOFTWARE TO CRACK A PASSWORD

What is Password Cracking? Password cracking is the process of guessing or recovering a password from stored locations or from data transmission system. It is used to get a password for unauthorized access or to recover a forgotten password. In penetration testing, it is used to check the security of an application. In recent years, computer programmers have been trying to create algorithms for password cracking in less time. Most of the password cracking tools try to login with every possible combination of words. If login is successful, it means the password was found. If the password is strong enough with a combination of numbers, characters and special characters, this cracking method may take hours to weeks or months. A few password cracking tools use a dictionary that contains passwords. These tools are totally dependent on the dictionary, so success rate is lower. In the past few years, programmers have developed many password cracking tools. Every tool has its own advantages and disadvantages. In this post, we are covering a few of the most popular password cracking tools. 1. Brutus Brutus is one of the most popular remote online password cracking tools. It claims to be the fastest and most flexible password cracking tool. This tool is free and is only available for Windows systems. It was released back in October 2000. It supports HTTP (Basic Authentication), HTTP (HTML Form/CGI), POP3, FTP, SMB, Telnet and other types such as IMAP, NNTP, NetBus, etc. You can also create your own authentication types. This tool also supports multi-stage authentication engines and is able to connect 60 simultaneous targets. It also has resume and load options. So, you can pause the attack process any time and then resume whenever you want to resume. This tool has not been updated for many years. Still, it can be useful for you. 2. RainbowCrack RainbowCrack is a hash cracker tool that uses a large-scale time-memory trade off process for faster password cracking than traditional brute force tools. Time-memory trade off is a computational process in which all plain text and hash pairs are calculated by using a selected hash algorithm. After computation, results are stored in the rainbow table. This process is very time consuming. But, once the table is ready, it can crack a password must faster than brute force tools. You also do not need to generate rainbow tablets by yourselves. Developers of RainbowCrack have also generated LM rainbow tables, NTLM rainbow tables, MD5 rainbow tables and Sha1 rainbow tables. Like RainbowCrack, these tables are also available for free. You can download these tables and use for your password cracking processes. Download Rainbow tables here: http://project-rainbowcrack.com/table.htm A few paid rainbow tables are also available, which you can buy from here: http://project-rainbowcrack.com/buy.php This tool is available for both Windows and Linux systems. Download Rainbow crack here: http://project-rainbowcrack.com/ 3. Wfuzz Wfuzz is another web application password cracking tool that tries to crack passwords with brute forcing. It can also be used to find hidden resources like directories, servlets and scripts. This tool can also identify different kind of injections including SQL Injection, XSS Injection, LDAP Injection, etc in Web applications. Key features of Wfuzz password cracking tool: Capability of injection via multiple points with multiple dictionary Output in colored HTML Post, headers and authentication data brute forcing Proxy and SOCK Support, Multiple Proxy Support Multi Threading Brute force HTTP Password POST and GET Brute forcing Time delay between requests Cookies fuzzing 4. Cain and Abel Cain and Abel is a well-known password cracking tool that is capable of handling a variety of tasks. The most notable thing is that the tool is only available for Windows platforms. It can work as sniffer in the network, cracking encrypted passwords using the dictionary attack, recording VoIP conversations, brute force attacks, cryptanalysis attacks, revealing password boxes, uncovering cached passwords, decoding scrambled passwords, and analyzing routing protocols. Cain and Abel does not exploit any vulnerability or bugs. It only covers security weakness of protocols to grab the password. This tool was developed for network administrators, security professionals, forensics staff, and penetration testers. Download here: http://www.oxid.it/ca_um/ 5. John the Ripper John the Ripper is another well-known free open source password cracking tool for Linux, Unix and Mac OS X. A Windows version is also available. This tool can detect weak passwords. A pro version of the tool is also available, which offers better features and native packages for target operating systems. You can also download Openwall GNU/*/Linux that comes with John the Ripper. Download John the Ripper here: http://www.openwall.com/john/ 6. THC Hydra THC Hydra is a fast network logon password cracking tool. When it is compared with other similar tools, it shows why it is faster. New modules are easy to install in the tool. You can easily add modules and enhance the features. It is available for Windows, Linux, Free BSD, Solaris and OS X. This tool supports various network protocols. Currently it supports Asterisk, AFP, Cisco AAA, Cisco auth, Cisco enable, CVS, Firebird, FTP, HTTP-FORM-GET, HTTP-FORM-POST, HTTP-GET, HTTP-HEAD, HTTP-PROXY, HTTPS-FORM-GET, HTTPS-FORM-POST, HTTPS-GET, HTTPS-HEAD, HTTP-Proxy, ICQ, IMAP, IRC, LDAP, MS-SQL, MYSQL, NCP, NNTP, Oracle Listener, Oracle SID, Oracle, PC-Anywhere, PCNFS, POP3, POSTGRES, RDP, Rexec, Rlogin, Rsh, SAP/R3, SIP, SMB, SMTP, SMTP Enum, SNMP, SOCKS5, SSH (v1 and v2), Subversion, Teamspeak (TS2), Telnet, VMware-Auth, VNC and XMPP. Download THC Hydra here: https://www.thc.org/thc-hydra/ If you are a developer, you can also contribute to the tool’s development. 7. Medusa Medusa is also a password cracking tool similar to THC Hydra. It claims to be a speedy parallel, modular and login brute forcing tool. It supports HTTP, FTP, CVS, AFP, IMAP, MS SQL, MYSQL, NCP, NNTP, POP3, PostgreSQL, pcAnywhere, rlogin, SMB, rsh, SMTP, SNMP, SSH, SVN, VNC, VmAuthd and Telnet. While cracking the password, host, username and password can be flexible input while performing the attack. Medusa is a command line tool, so you need to learn commands before using the tool. Efficiency of the tool depends on network connectivity. On a local system, it can test 2000 passwords per minute. With this tool, you can also perform a parallel attack. Suppose you want to crack passwords of a few email accounts simultaneously. You can specify the username list along with the password list. Read more about this here: http://foofus.net/goons/jmk/medusa/medusa.html Download Medusa here: http://www.foofus.net/jmk/tools/medusa-2.1.1.tar.gz 8. OphCrack OphCrack is a free rainbow-table based password cracking tool for Windows. It is the most popular Windows password cracking tool, but can also be used on Linux and Mac systems. It cracks LM and NTLM hashes. For cracking Windows XP, Vista and Windows 7, free rainbow-tables are also available. A live CD of OphCrack is also available to simplify the cracking. One can use the Live CD of OphCrack to crack Windows-based passwords. This tool is available for free. Download OphCrack here: http://ophcrack.sourceforge.net/ Download free and premium rainbow tables for OphCrack here: http://ophcrack.sourceforge.net/tables.php 9. L0phtCrack L0phtCrack is an alternative to OphCrack. It attempts to crack Windows password from hashes. For cracking passwords, it uses Windows workstations, network servers, primary domain controllers, and Active Directory. It also uses dictionary and brute force attacking for generating and guessing passwords. It was acquired by Symantec and discontinued in 2006. Later L0pht developers again re-acquired it and launched L0phtCrack in 2009. It also comes with a schedule routine audit feature. One can set daily, weekly or monthly audits, and it will start scanning on the scheduled time. L0phtCrack: http://www.l0phtcrack.com/ 10. Aircrack-NG Aircrack-NG is a WiFi password cracking tool that can crack WEP or WPA passwords. It analyzes wireless encrypted packets and then tries to crack passwords via its cracking algorithm. It uses the FMS attack along with other useful attack techniques for cracking password. It is available for Linux and Windows systems. A live CD of Aircrack is also available. If you want to use AirCrack NG for password cracking, read tutorials here: http://www.aircrack-ng.org/doku.php?id=getting_started Download AirCrack-NG here: http://www.aircrack-ng.org/

Create A bootable USB and Save Your Computer

Make a bootable USB drive with the Windows utility program DiskPart If you dare to do the necessary work by hand, you can simply use the cmd.exe application, better known as “Command Prompt”, to create a bootable USB drive on all operating systems from Windows Vista (including Windows 10). This goes as follows: Plug the USB drive into your computer’s USB port. Search for the “cmd” application in the Windows start menu, right-click on the item, and select “Run as administrator” from the context menu. This opens a small window with white text on a black background. Type the command “diskpart” and confirm your input with the enter key (you’ll also do this after every other entered command). This starts the storage device manager. Enter the command “list disk” to display all available storage devices. You can recognize your USB by its storage capacity, and it’s usually listed as “disk 1”. In the system partition, “disk 0” is usually your PC, so a hard drive or solid state drive in your computer. Based on the assumption that your USB has the label “disk 1”, enter the command “sel disk 1” to select it (or the corresponding “disk 2”, etc.). Enter then command “clean” to delete all files from the USB. Enter the command “create partition primary” to create a main partition. Enter the command “list par” and select the newly created main partition with “sel par 1”. Activate the partition with the command “active”. Format the USB with the command “format fs=FAT32 label=“WINDOWSUSB” quick override” (in place of “WINDOWS USB” you can also choose another label, so long as it doesn’t contain any spaces or special characters. The drive will later be displayed under this name if you plug into a running Windows computer). Formatting may take a while. You can track its progress in the percentage bar. As soon as the process is finished, enter the command “assign” to automatically assign a drive letter (for example “G:”) to your USB. Enter “exit” to close DiskPart, and then “exit” again to close the command prompt. Command Prompt in the Windows search bar To start the “Command Prompt” on your PC, simply enter “cmd” in the Windows search bar. Don’t forget to right-click to run the application as an administrator Command for the creation of a bootable USB drive in the Command Prompt This is how the commands in cmd.exe should look if you’ve done everything correctly To finish the process, you just have to copy the Windows ISO file to a bootable USB stick. This is done with a basic drag-and-drop. If you’re using an installation disc, you can also drag all setup files from there onto your drive (use the folder options to display all of the hidden files first). That’s all possible in the command prompt as well. For a source media with the drive letter “D:” and a USB drive with the letter “G:”, the corresponding command would look as follows: “xcopy D:\*.* G:\*.* /S /E /F” (all of the spaces are intentional). Create a bootable USB with external tools The media creation tool mentioned previously can also write a downloaded ISO file to a USB drive in one go, and so create a bootable USB – but it only works with Windows 10. There are, though, many freeware programs suitable for all operating systems (including Linux) that can take over the tasks of the otherwise manual device management. Some of the most popular are Rufus, WinUSB, and UNetbootin. Each of these tools are made up of a single very small file that you can download directly and start without installation. Bootable USB with Rufus Rufus is widely considered to be the fastest and most reliable tool for the creation of a bootable USB. It also supports UEFI (“Unified Extensible Firmware Interface”), a new mainboard firmware that replaced the old BIOS and can already be found on almost all newer computers. From Windows 8, it’s also possible to install “Windows2Go” as a portable operating system on an external storage device with Rufus. Operation of the tool is simple: Open the program with a double-click Select your USB drive in “Device” Select “Create a bootable disk using” and the option “ISO Image” Right-click on the CD-ROM symbol and select the ISO file Under “New volume label”, you can enter whatever name you like for your USB drive You’ll receive the warning “ALL DATA ON THIS DEVICE WILL BE DESTROYED”, which you can confidently confirm with “OK”– at this point, you’ve ideally already saved any important files from the USB drive Click on “Start” As soon as the green bar is full, click on “Finish” Eject your bootable USB drive with “Safely eject hardware” Note Avoid simply pulling the finished bootable USB drive out of the port without using the “Safely eject hardware” option. This could cause you to lose data, since the computer still has access to the storage device and theoretically could still have writing processes underway. With a USB-capable external hard drive, abrupt separation from the computer connection amounts to a system crash on the hard drive.