Hello Friend! Today I want to share something with you which may be known by many of you but I'm sure that still there are many people who are not aware of it. We all are addicted to YouTube videos but sometime we want those videos in mp3 format. Yes there are many software which allows you to convert but from now on you don't need any software. Suppose you want this YouTube video(https://www.youtube.com/watch?v=sl_kv-6-I_s) in mp3 formate, then you need to put "now" in between "you" and "tube". If we put "now" in the above link then it will look like https://www.younowtube.com/watch?v=sl_kv-6-I_s and after that you need to press "Enter". It will redirect to a site and it will take take some seconds to convert to mp3. After conversion is done, you will get a link to download the video in mp3 formate. If still you have any doubt then let me know through comment section.
H@CK DEFENCE
A BLOG ON NETWORK SECURITY, ETHICAL HACKING AND PROGRAMMING
Welcome To The World Of Hacking
Learn Hacking|Teach Hacking|Learn To Secure|Learn To Code
Friday
Saturday
DOS ATTACK: SYN FLOODING
Hello Friends! Today I'm going to introduce u with SYN Flooding. But before u read this article, all of u try to visit this link HOW TO HACK A WEBSITE WITH DENIAL OF SERVICE(DOS) ATTACK. Now Question is What is SYN Flooding? Well SYN flooding is a method of conducting a denial-of-service(DoS) attack on a computer server.
Steps to start a TCP connection to a server:
1. The client request a connection by sending a synchronize message to the server
2. The server acknowledges this request by sending synchronize acknowledge message back to the client
3. The client responds with an acknowledge message and finally the connection is established.
In SYN flooding instead of sending acknowlege message to server by client it keeps sending synchronize request to server. This type of connection is called half-open connection. For sending continuously request to server, it becomes busy with the client so for other client to make communication with the server is impossible.
JAVA PROGRAMMING TUTORIAL 51: INHERITANCE
// extends method is used to get the access to the method of other class
class Counter {
int i = 0;
Counter increment() {
i++;
return this;
}
void output() {
System.out.println("Output Using Inherent method,i = " + i);
}
}
public class HackDefence extends Counter {
public static void main(String[] args) {
Counter x = new Counter();
x.increment().increment().output();
}
}
OUTPUT:
class Counter {
int i = 0;
Counter increment() {
i++;
return this;
}
void output() {
System.out.println("Output Using Inherent method,i = " + i);
}
}
public class HackDefence extends Counter {
public static void main(String[] args) {
Counter x = new Counter();
x.increment().increment().output();
}
}
OUTPUT:
JAVA PROGRAMMING TUTORIAL 50: LARGEST & SMALLEST NUMBER IN AN ARRAY
Good Morning Friends! Today I am going to give another tutorial on array. Today's tutorial will be based on mainly to find out largest and smallest number in the given array. If you are beginner, then I recommend you to go to my previous tutorial on array such that you can easily understand today's tutorial. Here is the link JAVA PROGRAMMING TUTORIAL 28: SUMMATION OF ELEMENTS OF ARRAY . Now follow the below code to learn to find out the largest and smallest number. If you get any doubt then please write on the comment box.
public class HackDefence {
public static void main(String[] args)
{
double[] array = {9,8,7.65,100.31,34,90,100.13};
for(double numbers: array){
System.out.println(numbers);
}
double SUM = 0;
for (int i = 0; i < array.length; i++) {
SUM += array[i];
}
System.out.println("Sum of all the numbers in the array = " + SUM);
double smallestNumber = array[0];
for(int i=1; i<array.length; i++){
if(array[i]<smallestNumber)
smallestNumber = array[i];
}
System.out.println("Smallestt number in the array = " + smallestNumber);
double largestNumber = array[0];
for (int i = 1; i < array.length; i++) {
if (array[i] > largestNumber)
largestNumber = array[i];
}
System.out.println("Largest number in the array = " + largestNumber);
}
}
(my facebook profile link: https://www.facebook.com/dipankar.choudhury1)
OUTPUT:
JAVA PROGRAMMING TUTORIAL 49: SWITCH STATEMENT(1)
Hello Friends! After a long time I am back to write again about Programming or hacking Stuff. Today I am going to provide you a program based on switch statement. Prior to it, I wrote an article on switch statement so it will be better to view the previous one first. Here is the link of that article JAVA PROGRAMMING TUTORIAL 10: SWITCH STATEMENT . Now follow the below program to understand what I am trying to teach you-
public class HackDefence {
public static void main(String args[]){
int overallPercentage = 50;
switch(overallPercentage){
case 90 :
System.out.println("Excellent!");
break;
case 80 :
System.out.println("Well done");
break;
case 50 :
System.out.println("You may suffer but still You will get lot of scope");
break;
case 29 :
System.out.println("Better try again");
break;
default :
System.out.println("Invalid grade");
}
System.out.println("Your overall percentage is " + overallPercentage);
}
}
(my facebook link: https://www.facebook.com/dipankar.choudhury1 )
OUTPUT:
Wednesday
JAVA PROGRAMMING TUTORIAL 48 : paint() METHOD
// paint method is used for drawing operations
public class HackDefence extends java.applet.Applet {
public void paint ( java.awt.Graphics ab ) {
ab.drawString ("HACK DEFENCE", 25, 75 ); // draw a string
ab.drawRect ( 0, 0, 299, 199 ); //draw a rectangle over the edge
}
}
(my facebook link: https://www.facebook.com/dipankar.choudhury1)
OUTPUT:
public class HackDefence extends java.applet.Applet {
public void paint ( java.awt.Graphics ab ) {
ab.drawString ("HACK DEFENCE", 25, 75 ); // draw a string
ab.drawRect ( 0, 0, 299, 199 ); //draw a rectangle over the edge
}
}
(my facebook link: https://www.facebook.com/dipankar.choudhury1)
OUTPUT:
Tuesday
JAVA PROGRAMMING TUTORIAL 47 : ENUMERATION
//enum is used to declare constants
public class HackDefence{
public enum DipankarChoudhuryLab{
me("India"),he("usa");
private final String cntry;
DipankarChoudhuryLab(String country){
cntry = country;
}
public String getCountryName(){
return cntry;
}
}
public static void main(String[]args){
System.out.println("Name "+" Country");
for(DipankarChoudhuryLab name: DipankarChoudhuryLab.values()) {
System.out.printf("%s\t%s\t\n", name, name.getCountryName());
}
}
}
(my facebook profile link: https://www.facebook.com/dipankar.choudhury1)
OUTPUT:
public class HackDefence{
public enum DipankarChoudhuryLab{
me("India"),he("usa");
private final String cntry;
DipankarChoudhuryLab(String country){
cntry = country;
}
public String getCountryName(){
return cntry;
}
}
public static void main(String[]args){
System.out.println("Name "+" Country");
for(DipankarChoudhuryLab name: DipankarChoudhuryLab.values()) {
System.out.printf("%s\t%s\t\n", name, name.getCountryName());
}
}
}
(my facebook profile link: https://www.facebook.com/dipankar.choudhury1)
OUTPUT:
Subscribe to:
Posts (Atom)