Shubham Garg

Student at Chandigarh University

Search Engine Optimization

“No website can stand without a strong backbone. And that backbone is technical SEO.” Says Neil Patel. After reading the title the question that must be striking your head is that What IS SEO. SEO refers to search engine optimization. Let us get into this with the help of an example You all must be using google search everyday almost but the question is did you ever wondered how is the result that is shown on the top is on the top. The reason is SEO i.e. Search Engine Optimization is nothing but a technique used by search engines like Google and Bing to optimize the search results of the websites. Each of the search engines like Google has there own searching algorithm, The basic idea how the algorithm works is that the algorithm searches for some specific keywords, links, images and such stuff in web pages according to the search the user made. While searching on the Internet no one scrolls till the last result of the page as there is sufficient information in top search results. How are the websites getting into the top results, Its all possible because of the website ranking.  Every search engine has a searching algorithm which ranks every website on the web and that's called Website Ranking. How the websites are getting ranked is totally on the keywords. With the emerging world of Digital Marketing, every startup has an SEO team working to maintain the ranking of the website so as to get in the top results. A website without SEO means that is not in the top rankings which directly means there is no organic traffic and if there is no traffic on the website, Product is not going to have a good sale and there is a sure loss for the website. If a blog or a website is in the top results that's what every user will open and they will surely get a good traffic. Now, this traffic costs nothing for the search engine. Now suppose search engine changes its algorithm and according to that the ranking is not good for a website that used to be in the top results, Now a company that totally depending upon traffic will surely get a serious loss and that's where search engine make a business move. Google has made almost 500 changes in algorithms till date making their search engine a business tycoon.SEO can lower down the marketing cost as well, If a website is in the top ranking there is no need to pay for Google ADs that directly means Profit for the organization. Every organization that wants to improve the visibility on Internet needs SEO so as to improve the ranking and get in the top results. According to a survey, top results get 75% of the clicks and that's enough to show the importance of SEO for an e-commerce website for a blog that totally depends upon the traffic.

HTML - DiV Tag

<html> <meta name="viewport" content="width=device-width,initial-scale=1.0"> <head><title>Day 3</title> <style> .k     {         padding: 30px;         margin:19px;         background-color: black;         color: white;         height: 45px;         text-align: center;     } </style></head> <body> <div class="k"> Hello world </div> <span style="background-color:seagreen;color:yellow;font-family: cursive">hey</span> </body> </html>

String Operators using Shell Scripting

#!/bin/sh    str1="security"; str2="hacked"; if [ $str1 = $str2 ] then     echo "Both string are same"; else     echo "Both string are not same"; fi

Pattern Orinting Using BASH

N=5   i=0 j=0    while [ $i -le `expr $N - 1` ] do     j=0            while [ $j -le `expr $N - 1` ]     do         if [ `expr $N - 1` -le `expr $i + $j` ]         then           # Print the pattern           echo -ne "#"         else           # Print the spaces required           echo -ne " "         fi         j=`expr $j + 1`     done     # For next line     echo                     i=`expr $i + 1` done

swap two numbers using Bash

first=52 second=130     temp=$first first=$second second=$temp    echo "After swapping, numbers are:" echo "first = $first, second = $second"

How the ARP Scan Tool works

The tool sends ARP Packets to every IPv4 address in the range and looks for the mandatory ARP Reply. You are limited to scanning IP addresses in your subnet - why? Because ARP is not routed. IPv4 connected devices cannot hide from ARP - the must respond if they are to be communicating using IPv4 ethernet.   It displays ARP replies with the corresponding IPv4 address. Shows all devices responding with an ARP reply message during the scan. The manufacturer of each remote device's network interface is shown. The hostname for each IP address can be optionally shown.   Make notes or comments to go with each MAC address. You can add a note that is tied to each MAC address so if the IPv4 address changes in a DHCP environment, the note will stay with the MAC address.

How the ARP Scan Tool works

Enter an IP address, then the tool sends ARP in Broadcast, then Unicast Mode. ARP Ping first pings an IP address on your LAN with a broadcast MAC address in the ARP packet. If an ARP response packet is received from the device, it continues to ping using the unicast ARP packet (by unicast we mean the target MAC address came from the first response to our broadcast).   Sends ARP in Broadcast Only Mode ARP Ping pings an IPv4 address on your LAN with a broadcast MAC address ARP packet and continue to ping the IP Address with a broadcast targetted ARP packet.   Duplicate IP Address Detection ARP Ping can search your LAN for duplicate IPv4 addresses using ARP packets sent to a specific IPv4 address. All responding MAC addresses are shown. Version 11.50 introduced a dedicated Duplicate IPv4 Scanning Tool.

How the Duplicate IP Scanner works

The Duplicate IP Scanner Tool scans your subnet (or a range within your subnet) looking for duplicate IPv4 addresses in use by two or more devices. Any duplicates found are shown with their IPv4 address, MAC address, network interface manufacturer name and hostname. Important: to find duplicates on another subnet, you must connect your computer to that subnet.The tool checks every IPv4 address in the range specified and looks for two or more devices using the same IP address. It scans the IPv4 devices with ARP packets and collects the responses. Any responses from different devices using the same IPv4 address are noted and displayed. Displays Duplicate IP Addresses along with the MAC Addresses of the Duplicates. Shows all duplicates along with the IPv4 address, MAC of each device, the manufacturer of each remote device's network interface and the hostname for each IP address (optional).

Packet Generator Tool

The NetScanTools Pro Packet Generator tool allows you to craft or build a TCP, UDP, ICMP, CDP (Cisco® Discovery Protocol), ARP/RARP or RAW packet and send one or more packets to a target IPv4 address.You have full control over the headers: ethernet source and destination MAC addresses, IP, TCP, UDP or ICMP header fields. You can send different types of packets in succession using scripting. You can also play back a previously saved packet capture file Types of Packets Generated These pages explore the modes of Packet Generation: Sending a TCP Packet Sending a UDP Packet Sending an ICMP Packet Sending a CDP Packet Sending an ARP Packet RAW packet sends are the most versatile. You specifiy the whole packet from ethernet headers to the end and send it. Any protocol that works with ethernet can be sent.

F# - Program Structure

open System let sign num = if num > 0 then "positive" elif num < 0 then "negative" else "zero" let main() = Console.WriteLine("sign 5: {0}", (sign 5)) main()

Firewall Setup In Linux

There are three actions which the iptables can perform on the traffic ACCEPT DROP REJECT 1. ACCEPT When a traffic passes the rules in its specified chain, then the iptable accepts the traffic. That means it opens up the gate and allows the person to go inside the kingdom of Thanos. 2. DROP When the traffic is unable to pass the rules in its specified chain, the iptable blocks that traffic. That means the firewall is closed. 3. REJECT This type of action is similiar to the drop action but it sends a message to the sender of the traffic stating that the data transfer has failed. As a general rule, use REJECT when you want the other end to know the port is unreachable’ use DROP for connections to hosts you don’t want people to see. To list the rules of the current iptables:- sudo iptables -L 2. Clear the rules : If you ever want to clear/flush out all the existing rules. Run the following command:- sudo iptables -F This will reset the iptables. 3. Changing the default policy of chains : sudo iptables -P Chain_name Action_to_be_taken As you can see in the above picture ,default policy of each of the chain is ACCEPT. For eg:– If you see the forward chain, you will see “Chain FORWARD (policy ACCEPT)”.This means your computer allows any traffic to be forwarded to another computer.   In order to change the policy of forward to drop:- sudo iptables -P FORWARD DROP The above command will stop any traffic to be forwarded through your system. That means no other system can your system as an intermediary to pass the data. Making your First Rule : 1. Implementing a DROP rule : We’ll now start building our firewall policies.We’ll first work on the input chain since that is where the incoming traffic will be sent through. Syntax:- sudo iptables -A/-I chain_name -s source_ip -j action_to_take We’ll take an example to understand the topic. Let’s assume we want to to block the traffic coming from a ip address 192.168.1.3. The following command can be used:- sudo iptables -A INPUT -s 192.168.1.3 -j DROP This may look complicated, but most of it will make sense when we go over the components:- -A INPUT :- The flag -A is used to append a rule to the end of a chain. This part of the command tells the iptable that we want to add a rule to the end of the INPUT chain. -I INPUT:- In this flag the rules are added to the top of the chain. -s 192.168.1.3:- The flag -s is used to specify the source of the packet. This tells the iptable to look for the packets coming from the source 192.168.1.3 -j DROP This specifies what the iptable should do with the packet.   In short, the above command adds a rule to the INPUT chain which says , if any packet arrives whose source address is 192.168.1.3 then drop that packet, that means do not allow the packet reach the computer. Once you execute the above command you can see the changes by using the command:- sudo iptables -L

Search Engine Optimization

“No website can stand without a strong backbone. And that backbone is technical SEO.” Says Neil Patel. After reading the title the question that must be striking your head is that What IS SEO. SEO refers to search engine optimization. Let us get into this with the help of an example You all must be using google search everyday almost but the question is did you ever wondered how is the result that is shown on the top is on the top. The reason is SEO i.e. Search Engine Optimization is nothing but a technique used by search engines like Google and Bing to optimize the search results of the websites. Each of the search engines like Google has there own searching algorithm, The basic idea how the algorithm works is that the algorithm searches for some specific keywords, links, images and such stuff in web pages according to the search the user made. While searching on the Internet no one scrolls till the last result of the page as there is sufficient information in top search results. How are the websites getting into the top results, Its all possible because of the website ranking.  Every search engine has a searching algorithm which ranks every website on the web and that's called Website Ranking. How the websites are getting ranked is totally on the keywords. With the emerging world of Digital Marketing, every startup has an SEO team working to maintain the ranking of the website so as to get in the top results. A website without SEO means that is not in the top rankings which directly means there is no organic traffic and if there is no traffic on the website, Product is not going to have a good sale and there is a sure loss for the website. If a blog or a website is in the top results that's what every user will open and they will surely get a good traffic. Now, this traffic costs nothing for the search engine. Now suppose search engine changes its algorithm and according to that the ranking is not good for a website that used to be in the top results, Now a company that totally depending upon traffic will surely get a serious loss and that's where search engine make a business move. Google has made almost 500 changes in algorithms till date making their search engine a business tycoon.SEO can lower down the marketing cost as well, If a website is in the top ranking there is no need to pay for Google ADs that directly means Profit for the organization. Every organization that wants to improve the visibility on Internet needs SEO so as to improve the ranking and get in the top results. According to a survey, top results get 75% of the clicks and that's enough to show the importance of SEO for an e-commerce website for a blog that totally depends upon the traffic.