-->

ABOUT US

Our development agency is committed to providing you the best service.

OUR TEAM

The awesome people behind our brand ... and their life motto.

  • Kumar Atul Jaiswal

    Ethical Hacker

    Hacking is a Speed of Innovation And Technology with Romance.

  • Kumar Atul Jaiswal

    CEO Of Hacking Truth

    Loopholes are every major Security,Just need to Understand it well.

  • Kumar Atul Jaiswal

    Web Developer

    Techonology is the best way to Change Everything, like Mindset Goal.

OUR SKILLS

We pride ourselves with strong, flexible and top notch skills.

Marketing

Development 90%
Design 80%
Marketing 70%

Websites

Development 90%
Design 80%
Marketing 70%

PR

Development 90%
Design 80%
Marketing 70%

ACHIEVEMENTS

We help our clients integrate, analyze, and use their data to improve their business.

150

GREAT PROJECTS

300

HAPPY CLIENTS

650

COFFEES DRUNK

1568

FACEBOOK LIKES

STRATEGY & CREATIVITY

Phasellus iaculis dolor nec urna nullam. Vivamus mattis blandit porttitor nullam.

PORTFOLIO

We pride ourselves on bringing a fresh perspective and effective marketing to each project.

  • PID In Linux

     

    PID In Linux

     

     

    PID In Linux


    A PID is an acronym for the process identification number. PID is automatically assigned to each process when it is created on a linux operating system. The init or systemd is always the first process on the linux operating system and is the parent of all other processes. PID In Linux




    How do i find the PID in linux?


    1) Open the terminal application
    2) Type the pidof command as follows to find PID for firefox process: pidof firefox.
    3) Or use the ps command along with grep command as follows: ps aux| grep -i firefox/
    4) To look up or signal processess based on name use.


     

    Every time a user or the system (Linux) launches a program, the kernel will create a process. A process holds execution details of the program in memory such as its input and output data, variables and so on.

    Importantly, since Linux is a multitasking operating system, it executes several programs simultaneously.

    The kernel identifies each process using a process ID (PID), a every instance of process must have a unique PID from other processes which is assigned when the process is invoked, to avoid any execution errors.

    The /proc file system stores information about currently running processes on your system, it contains directories for each process.



    $ ls /proc
    OR
    $ ls /proc | less

     

     

     


    You can monitor processes and their PIDs using traditional Linux commands such as ps, top and relatively new glances command plus many more as in the examples below:


    $ ps aux
     

     

    Show Running Processes with PID

     

     


     

     

     


    Provided by Hacking Truth

     

     

     


    Brought to you by Hacking Truth

     

     

     

     


    Disclaimer

     

    All tutorials are for informational and educational purposes only and have been made using our own routers, servers, websites and other vulnerable free resources. we do not contain any illegal activity. We believe that ethical hacking, information security and cyber security should be familiar subjects to anyone using digital information and computers. Hacking Truth is against misuse of the information and we strongly suggest against it. Please regard the word hacking as ethical hacking or penetration testing every time this word is used. We do not promote, encourage, support or excite any illegal activity or hacking.



      - Hacking Truth by Kumar Atul Jaiswal



  • TryHackMe Dunkle Materie

     

     

    TryHackMe Dunkle Materie

     


    Hello guys, This is writeup for the room of tryhackme Dunkle Materie from the TryHackMe platform. This room is a medium room that lets users investigate the ransomware attack using an application called ProcDOT.

     

     

    TryHackMe Dunkle Materie

     

     

     

    The firewall alerted the Security Operations Center that one of the machines at the Sales department, which stores all the customers' data, contacted the malicious domains over the network. When the Security Analysts looked closely, the data sent to the domains contained suspicious base64-encoded strings. The Analysts involved the Incident Response team in pulling the Process Monitor and network traffic data to determine if the host is infected. But once they got on the machine, they knew it was a ransomware attack by looking at the wallpaper and reading the ransomware note.



    TryHackMe Dunkle Materie



    I place the logfile into the procmon as in the figure below.



    TryHackMe Dunkle Materie



    It doesn't seem to work, so I added the traffic file to Windump.


     

     

    TryHackMe Dunkle Materie

     

     

     

    1) Provide the two PIDs spawned from the malicious executable. (In the order as they appear in the analysis tool)

     

     

    TryHackMe Dunkle Materie

     

     

    Ans- 8644, 7128

     




    2) Provide the full path where the ransomware initially got executed? (Include the full path in your answer)

     

     

    TryHackMe Dunkle Materie

     

     

    We can see that the red box is the full path where the malware is initially executed, which is the second question.

    (The path is redacted for the learning purposes of each user.)

     


     

    TryHackMe Dunkle Materie

     

     

     

     

    Ans- c:\users\sales\appdata\local\temp\exploreer.exe




     

    3) This ransomware transfers the information about the compromised system and the encryption results to two domains over HTTP POST. What are the two C2 domains? (no space in the answer)

     

     

    TryHackMe Dunkle Materie


     

     

    TryHackMe Dunkle Materie

     

     

     

    TryHackMe Dunkle Materie

     

     

     
     
     
     
     
     
    After reading the third question, I looked into the first exploreer.exe found. I found a suspicious site that might be used by the “hackers”.
     
     

    On the second exploreer.exe, I also found one.



    TryHackMe Dunkle Materie

     


     

    Ans- mojobiden.com,paymenthacks.com



    4) What are the IPs of the malicious domains? (no space in the answer)
     

    Ans- 146.112.61.108,206.188.197.206





    5) Provide the user-agent used to transfer the encrypted data to the C2 channel.

     

    For this question, it wanted us to identify the user-agent used to transfer the encrypted data to the C2 channel.

    So, by right-clicking the site we found previously, we click on “Follow TCP Stream”.

     

     

    TryHackMe Dunkle Materie

     

     

    Ans- Firefox/89.0










    6) Provide the cloud security service that blocked the malicious domain.

     

     

    TryHackMe Dunkle Materie

     

    Now, we require to identify the cloud security service that blocked the malicious domain.

    So, at the same window, scroll down a bit more. And we can see the server name.

     

    Ans- Cisco Umbrella







    7) Provide the name of the bitmap that the ransomware set up as a desktop wallpaper.

     

    TryHackMe Dunkle Materie

     

     

    Ans- ley9kpi9r.bmp







    8) Find the PID (Process ID) of the process which attempted to change the background wallpaper on the victim's machine.

     

     

     

    TryHackMe Dunkle Materie


     

    Ans- 4892







    9) The ransomware mounted a drive and assigned it the letter. Provide the registry key path to the mounted drive, including the drive letter.

     

    For this part, we need to find the registry key path to the mounted drive, with the drive letter. So, I started with exploreer.exe. I look into each process in detail but failed to find the path.

    This really cost me so much time. As I was looking into the registry process and back to exploreer.exe, without realizing that I did not turn off the “no path” option. I wasted like an hour until I realize it. So, after in a rabbit hole for an hour, I manage to find the path.

     

     

    TryHackMe Dunkle Materie

     

     

    Ans- HKLM\SYSTEM\MountedDevices\DosDevices\Z:




    10) Now you have collected some IOCs from this investigation. Provide the name of the ransomware used in the attack. (external research required)

     

    This also takes me a lot of time to research. I do not have an idea on what keyword should I use to search for it.

    I tried to search on “ransomware targeting mount drive” and other doesn't help at all. But suddenly I think about the site “hacker” used before. So, I try to use one of the websites and look at it on Google. And BAM! I got it!

     

    Ans- Blackmatter Ransomware





    Disclaimer

     

    All tutorials are for informational and educational purposes only and have been made using our own routers, servers, websites and other vulnerable free resources. we do not contain any illegal activity. We believe that ethical hacking, information security and cyber security should be familiar subjects to anyone using digital information and computers. Hacking Truth is against misuse of the information and we strongly suggest against it. Please regard the word hacking as ethical hacking or penetration testing every time this word is used. We do not promote, encourage, support or excite any illegal activity or hacking.



      - Hacking Truth by Kumar Atul Jaiswal


  • Know About Principles Of Security

     

    Know About Principles Of Security

     


     

    The following blog is going to outline some of the fundamental principles of information security. The frameworks used to protect data and systems to the elements of what exactly makes data secure.

    The measures, frameworks and protocols discussed throughout this room all play a small part in "Defence in Depth."

    Defence in Depth is the use of multiple varied layers of security to an organisation's systems and data in the hopes that multiple layers will provide redundancy in an organisation's security perimeter.





    The CIA Triad


    The CIA triad is an information security model that is used in consideration throughout creating a security policy. This model has an extensive background, ranging from being used in 1998.


    This history is because the security of information (information security) does not start and/or end with cybersecurity, but instead, applies to scenarios like filing, record storage, etc.


    Consisting of three sections: Confidentiality, Integrity and Availability (CIA), this model has quickly become an industry standard today. This model should help determine the value of data that it applies to, and in turn, the attention it needs from the business.




    Know About Principles Of Security




    The CIA triad is unlike a traditional model where you have individual sections; instead, it is a continuous cycle. Whilst the three elements to the CIA triad can arguably overlap, if even just one element is not met, then the other two are rendered useless (similar to the fire triangle). If a security policy does not answer these three sections, it is seldom an effective security policy.


    Whilst the three elements to the CIA triad are arguably self-explanatory, let's explore these and contextualise them into cybersecurity.



    Know About Principles Of Security




    Confidentiality


    This element is the protection of data from unauthorized access and misuse. Organisations will always have some form of sensitive data stored on their systems. To provide confidentiality is to protect this data from parties that it is not intended for.


    There are many real-world examples for this, for example, employee records and accounting documents will be considered sensitive. Confidentiality will be provided in the sense that only HR administrators will access employee records, where vetting and tight access controls are in place. Accounting records are less valuable (and therefore less sensitive), so not as stringent access controls would be in place for these documents. Or, for example, governments using a sensitivity classification rating system (top-secret, classified, unclassified)


    Know About Principles Of Security



    Integrity


    The CIA triad element of integrity is the condition where information is kept accurate and consistent unless authorized changes are made. It is possible for the information to change because of careless access and use, errors in the information system, or unauthorized access and use. In the CIA triad, integrity is maintained when the information remains unchanged during storage, transmission, and usage not involving modification to the information. Steps must be taken to ensure data cannot be altered by unauthorised people (for example, in a breach of confidentiality).


    Many defences to ensure integrity can be put in place. Access control and rigorous authentication can help prevent authorized users from making unauthorized changes. Hash verifications and digital signatures can help ensure that transactions are authentic and that files have not been modified or corrupted.




    Know About Principles Of Security



    Availability


    In order for data to be useful, it must be available and accessible by the user.

    The main concern in the CIA triad is that the information should be available when authorised users need to access it.

    Availability is very often a key benchmark for an organisation. For example, having 99.99% uptime on their websites or systems (this is laid out in Service Level Agreements). When a system is unavailable, it often results in damage to an organisations reputation and loss of finances. Availability is achieved through a combination of many elements, including:
     

    Having reliable and well-tested hardware for their information technology servers (i.e. reputable servers)
     

    Having redundant technology and services in the case of failure of the primary    

    Implementing well-versed security protocols to protect technology and services from attack




    1) What element of the CIA triad ensures that data cannot be altered by unauthorised people?

    Ans - Integrity


    2) What element of the CIA triad ensures that data is available?

    Ans - Availability


    3) What element of the CIA triad ensures that data is only accessed by authorised people?

    Ans - confidentiality


     

    Principles of Privileges


    It is vital to administrate and correctly define the various levels of access to an information technology system individuals require.


    The levels of access given to individuals are determined on two primary factors:


    • The individual's role/function within the organisation
    • The sensitivity of the information being stored on the system




    Know About Principles Of Security




    Two key concepts are used to assign and manage the access rights of individuals, two key concepts are used: Privileged Identity Management (PIM) and Privileged Access Management (or PAM for short).


    Initially, these two concepts can seem to overlap; however, they are different from one another. PIM is used to translate a user's role within an organisation into an access role on a system. Whereas PAM is the management of the privileges a system's access role has, amongst other things.


    What is essential when discussing privilege and access controls is the principle of least privilege. Simply, users should be given the minimum amount of privileges, and only those that are absolutely necessary for them to perform their duties. Other people should be able to trust what people write to.


    As we previously mentioned, PAM incorporates more than assigning access. It also encompasses enforcing security policies such as password management, auditing policies and reducing the attack surface a system faces.







    1) What does the acronym "PIM" stand for?

    Ans- Privileged identity management



    2) What does the acronym "PAM" stand for?

    Ans - Privileged Access Management



    3) If you wanted to manage the privileges a system access role had, what methodology would you use?

    Ans - PAM


    4) If you wanted to create a system role that is based on a users role/responsibilities with an organisation, what methodology is this?

    Ans - PIM





    Security Models Continued


    Before discussing security models further, let's recall the three elements of the CIA triad: Confidentiality, Integrity and Availability. We've previously outlined what these elements are and their importance. However, there is a formal way of achieving this.


    According to a security model, any system or piece of technology storing information is called an information system, which is how we will reference systems and devices in this task.


    Let's explore some popular and effective security models used to achieve the three elements of the CIA triad.





    The Bell-La Padula Model


    The Bell-La Padula Model
    is used to achieve confidentiality. This model has a few assumptions, such as an organisation's hierarchical structure it is used in, where everyone's responsibilities/roles are well-defined.


    The model works by granting access to pieces of data (called objects) on a strictly need to know basis. This model uses the rule "no write down, no read up".


     

    Advantages Disadvantages
    Policies in this model can be replicated to real-life organisations hierarchies (and vice versa) Even though a user may not have access to an object, they will know about its existence -- so it's not confidential in that aspect.
    Simple to implement and understand, and has been proven to be successful. The model relies on a large amount of trust within the organisation.

     



    Know About Principles Of Security



    The Bell LaPadula Model is popular within organisations such as governmental and military. This is because members of the organisations are presumed to have already gone through a process called vetting. Vetting is a screening process where applicant's backgrounds are examined to establish the risk they pose to the organisation. Therefore, applicants who are successfully vetted are assumed to be trustworthy - which is where this model fits in.



    Biba Model


    The Biba model is arguably the equivalent of the Bell-La Padula model but for the integrity of the CIA triad.


    This model applies the rule to objects (data) and subjects (users) that can be summarised as "no write up, no read down". This rule means that subjects can create or write content to objects at or below their level but can only read the contents of objects above the subject's level.


    Let's compare some advantages and disadvantages of this model in the table below:



     

    Advantages Disadvantages
    This model is simple to implement. There will be many levels of access and objects. Things can be easily overlooked when applying security controls.
    Resolves the limitations of the Bell-La Padula model by addressing both confidentiality and data integrity. Often results in delays within a business. For example, a doctor would not be able to read the notes made by a nurse in a hospital with this model.

     



    The Biba model is used in organisations or situations where integrity is more important than confidentiality. For example, in software development, developers may only have access to the code that is necessary for their job. They may not need access to critical pieces of information such as databases, etc.





    1) What is the name of the model that uses the rule "can't read up, can read down"?

    Ans - The Bell-La Padula Model



    2) What is the name of the model that uses the rule "can read up, can't read down"?

    Ans - the biba model



    3) If you were a military, what security model would you use?

    Ans - The Bell-La Padula Model



    4) If you were a software developer, what security model would the company perhaps use?

    Ans - the biba model





    Threat Modelling & Incident Response


    Threat modelling is the process of reviewing, improving, and testing the security protocols in place in an organisation's information technology infrastructure and services.


    A critical stage of the threat modelling process is identifying likely threats that an application or system may face, the vulnerabilities a system or application may be vulnerable to. 

     

    Know About Principles Of Security






    The threat modelling process is very similar to a risk assessment made in workplaces for employees and customers. The principles all return to:




    • Preparation
    • Identification
    • Mitigations
    • Review





    It is, however, a complex process that needs constant review and discussion with a dedicated team. An effective threat model includes:


    • Threat intelligence
    • Asset identification
    • Mitigation capabilities
    • Risk assessment




    To help with this, there are frameworks such as STRIDE (Spoofing, identity, Tampering with data, Repudiation threats, Information disclosure, Denial of Service and Elevation of privileges) and PASTA (Process for Attack Simulation and Threat Analysis) infosec never tasted so good!. Let's detail STRIDE below. STRIDE, authored by two Microsoft security researchers in 1999 is still very relevant today. STRIDE includes six main principles, which I have detailed in the table below:Know About Principles Of Security






     

    Principle Description
    Spoofing This principle requires you to authenticate requests and users accessing a system. Spoofing involves a malicious party falsely identifying itself as another. Access keys (such as API keys) or signatures via encryption helps remediate this threat.
    Tampering By providing anti-tampering measures to a system or application, you help provide integrity to the data. Data that is accessed must be kept integral and accurate. For example, shops use seals on food products.
    Repudiation This principle dictates the use of services such as logging of activity for a system or application to track.
    Information Disclosure Applications or services that handle information of multiple users need to be appropriately configured to only show information relevant to the owner is shown.
    Denial of Service Applications and services use up system resources, these two things should have measures in place so that abuse of the application/service won't result in bringing the whole system down.
    Elevation of Privilege This is the worst-case scenario for an application or service. It means that a user was able to escalate their authorization to that of a higher level i.e. an administrator. This scenario often leads to further exploitation or information disclosure.

     



    A breach of security is known as an incident. And despite all rigorous threat models and secure system designs, incidents do happen. Actions taken to resolve and remediate the threat are known as Incident Response (IR) and are a whole career path in cybersecurity.


    Incidents are classified using a rating of urgency and impact. Urgency will be determined by the type of attack faced, where the impact will be determined by the affected system and what impact that has on business operations.

     


    Know About Principles Of Security





    An incident is responded to by a Computer Security Incident Response Team (CSIRT) which is prearranged group of employees with technical knowledge about the systems and/or current incident. To successfully solve an incident, these steps are often referred to as the six phases of Incident Response that takes place, listed in the table below:



     

    Action Description
    Preparation Do we have the resources and plans in place to deal with the security incident?
    Identification Has the threat and the threat actor been correctly identified in order for us to respond to?
    Containment Can the threat/security incident be contained to prevent other systems or users from being impacted?
    Information Disclosure Applications or services that handle information of multiple users need to be appropriately configured to only show information relevant to the owner is shown.
    Eradication Remove the active threat.
    Recovery Perform a full review of the impacted systems to return to business as usual operations.
    Lessons Learned What can be learnt from the incident? I.e. if it was due to a phishing email, employees should be trained better to detect phishing emails.

     




    1) What model outlines "Spoofing"?

    Ans - STRIDE



    2) What does the acronym "IR" stand for?

    Ans - incident response



    3) You are tasked with adding some measures to an application to improve the integrity of data, what STRIDE principle is this?

    Ans - Tampering



    4) An attacker has penetrated your organisation's security and stolen data. It is your task to return the organisation to business as usual. What incident response stage is this?

    Ans - Recovery




    Disclaimer

     

    All tutorials are for informational and educational purposes only and have been made using our own routers, servers, websites and other vulnerable free resources. we do not contain any illegal activity. We believe that ethical hacking, information security and cyber security should be familiar subjects to anyone using digital information and computers. Hacking Truth is against misuse of the information and we strongly suggest against it. Please regard the word hacking as ethical hacking or penetration testing every time this word is used. We do not promote, encourage, support or excite any illegal activity or hacking.



      - Hacking Truth by Kumar Atul Jaiswal



     

  • Master Local Area Network (LAN) Topologies In Just A Few Hours!

     

    Introducing LAN Topologies

     

     

    Master Local Area Network (LAN) Topologies In Just A Few Hours!

     

     

    Local Area Network (LAN) Topologies

     


    Over the years, there has been experimentation and implementation of various network designs.  In reference to networking, when we refer to the term "topology", we are actually referring to the design or look of the network at hand. Let's discuss the advantages and disadvantages of these topologies below. Master Local Area Network (LAN) Topologies In Just A Few Hours!



    Ring Topology

     

    The ring topology (also known as token topology) boasts some similarities. Devices such as computers are connected directly to each other to form a loop, meaning that there is little cabling required and less dependence on dedicated hardware such as within a star topology.

    A ring topology works by sending data across the loop until it reaches the destined device, using other devices along the loop to forward the data. Interestingly, a device will only send received data from another device in this topology if it does not have any to send itself. If the device happens to have data to send, it will send its own data first before sending data from another device.


    Master Local Area Network (LAN) Topologies In Just A Few Hours!




    Because there is only one direction for data to travel across this topology, it is fairly easy to troubleshoot any faults that arise. However, this is a double-edged sword because it isn't an efficient way of data travelling across a network, as it may have to visit many multiple devices first before reaching the intended device.

    Lastly, ring topologies are less prone to bottlenecks, such as within a bus topology, as large amounts of traffic are not travelling across the network at any one time. The design of this topology does, however, mean that a fault such as cut cable, or broken device will result in the entire networking breaking.


    This lab will take you through the flaws in different network topologies


    • In a ring topology, all devices are a connector to two others to create a full circle




    Master Local Area Network (LAN) Topologies In Just A Few Hours!



    • Packets of data travel from one device to the next until they have reached their destination



    Master Local Area Network (LAN) Topologies In Just A Few Hours!




    • One of the major flaws with a ring topology is that if a device goes down or a cable is broken, then data will no longer be passed
    • If you hover over the middle of the network cable, you can cut it and see what happens to the packets
    • If you hover over the middle of the network cable, you can cut it and see what happens to the packets
    • The packets can now no longer travel around the network, and no devices can talk to each other


     

    Bus Topology


    This type of connection relies upon a single connection which is known as a backbone cable. This type of topology is similar to the leaf off of a tree in the sense that devices (leaves) stem from where the branches are on this cable.

    Because all data destined for each device travels along the same cable, it is very quickly prone to becoming slow and bottlenecked if devices within the topology are simultaneously requesting data. This bottleneck also results in very difficult troubleshooting because it quickly becomes difficult to identify which device is experiencing issues with data all travelling along the same route.









    However, with this said, bus topologies are one of the easier and more cost-efficient topologies to set up because of their expenses, such as cabling or dedicated networking equipment used to connect these devices.

    Lastly, another disadvantage of the bus topology is that there is little redundancy in place in case of failures. This disadvantage is because there is a single point of failure along the backbone cable. If this cable were to break, devices can no longer receive or transmit data along the bus.


     
    • With a bus topology, all devices are connected to a single cable, often called the backbone.
    • Data is sent in both left and right directions down the backbone until the packet's destination is reached.
    • A major flaw in the bus topology is that it can't handle a large amount of data.
    • On the next step, send as many packets as quickly as you can to try and take down the network
     
     
     
     
    Master Local Area Network (LAN) Topologies In Just A Few Hours!

      
     
     
     
     

     

    Star Topology


    The main premise of a star topology is that devices are individually connected via a central networking device such as a switch or hub. This topology is the most commonly found today because of its reliability and scalability - despite the cost.

    Any information sent to a device in this topology is sent via the central device to which it connects. Let's explore some of these advantages and disadvantages of this topology below:


    Because more cabling & the purchase of dedicated networking equipment is required for this topology, it is more expensive than any of the other topologies. However, despite the added cost, this does provide some significant advantages. For example, this topology is much more scalable in nature, which means that it is very easy to add more devices as the demand for the network increases.
     
     
     
     
     
    Master Local Area Network (LAN) Topologies In Just A Few Hours!

     
     


    Unfortunately, the more the network scales, the more maintenance is required to keep the network functional. This increased dependence on maintenance can also make troubleshooting faults much harder. Furthermore, the star topology is still prone to failure - albeit reduced. For example, if the centralised hardware that connects devices fails, these devices will no longer be able to send or receive data. Thankfully, these centralised hardware devices are often robust.
     
     
     
     
    • With a star topology, all devices are connected with their own cable to a central switch/hub.
    • Every packet is sent through this switch, which means if the switch goes down the network will no longer work.
    • See if you can somehow break the switch.
    • The network is now down.

     
     
    Master Local Area Network (LAN) Topologies In Just A Few Hours!

     
     

    What is a Switch?


    Switches are dedicated devices within a network that are designed to aggregate multiple other devices such as computers, printers, or any other networking-capable device using ethernet. These various devices plug into a switch's port. Switches are usually found in larger networks such as businesses, schools, or similar-sized networks, where there are many devices to connect to the network. Switches can connect a large number of devices by having ports of 4, 8, 16, 24, 32, and 64 for devices to plug into.

    Switches are much more efficient than their lesser counterpart (hubs/repeaters). Switches keep track of what device is connected to which port. This way, when they receive a packet, instead of repeating that packet to every port like a hub would do, it just sends it to the intended target, thus reducing network traffic.
     
     
     
    Both Switches and Routers can be connected to one another. The ability to do this increases the redundancy (the reliability) of a network by adding multiple paths for data to take. If one path goes down, another can be used. Whilst this may reduce the overall performance of a network because packets have to take longer to travel, there is no downtime -- a small price to pay considering the alternative.








    Master Local Area Network (LAN) Topologies In Just A Few Hours!




    What is a Router?


    It's a router's job to connect networks and pass data between them. It does this by using routing (hence the name router!).

    Routing is the label given to the process of data travelling across networks. Routing involves creating a path between networks so that this data can be successfully delivered.

    Routing is useful when devices are connected by many paths, such as in the example diagram below.

     
     
     
     
     
    Master Local Area Network (LAN) Topologies In Just A Few Hours!

     
     
     
     
     
     
    1) What does LAN stand for?

    Ans - Local Area Network



    2) What is the verb given to the job that Routers perform?


    Ans - Routing



    3) What device is used to centrally connect multiple devices on the local network and transmit data to the correct location?

    Ans - Switch



    4) What topology is cost-efficient to set up?

    Ans - Bus Topology



    5) What topology is expensive to set up and maintain?


    Ans - Star Topology






     

    A Primer on Subnetting


    As we've previously discussed throughout the module so far, Networks can be found in all shapes and sizes - ranging from small to large. Subnetting is the term given to splitting up a network into smaller, miniature networks within itself. Think of it as slicing up a cake for your friends. There's only a certain amount of cake to go around, but everybody wants a piece. Subnetting is you deciding who gets what slice & reserving such a slice of this metaphorical cake.

    Take a business, for example; You will have different departments such as:

        Accounting
        Finance
        Human Resources
     

       
    Master Local Area Network (LAN) Topologies In Just A Few Hours!


     
    Whilst you know where to send information in real life to the correct department, networks need to know as well. Network administrators use subnetting to categorise and assign specific parts of a network to reflect this.

    Subnetting is achieved by splitting up the number of hosts that can fit within the network, represented by a number called a subnet mask. Let's refer back to our diagram from the first room in this module:
     
     
    Master Local Area Network (LAN) Topologies In Just A Few Hours!

     
     
    As we can recall, an IP address is made up of four sections called octets. The same goes for a subnet mask which is also represented as a number of four bytes (32 bits), ranging from 0 to 255 (0-255).

    Subnets use IP addresses in three different ways:

        Identify the network address
        Identify the host address
        Identify the default gateway
        
        
        

    Let's split these three up to understand their purposes into the table below:
     
     

     

    Type Purpose Explanation Example
    Network Address This address identifies the start of the actual network and is used to identify a network's existence. For example, a device with the IP address of 192.168.1.100 will be on the network identified by 192.168.1.0 192.168.1.0
    Host Address An IP address here is used to identify a device on the subnet For example, a device will have the network address of 192.168.1.1 192.168.1.100
    Default Gateway The default gateway address is a special address assigned to a device on the network that is capable of sending information to another network. Any data that needs to go to a device that isn't on the same network (i.e. isn't on 192.168.1.0) will be sent to this device. These devices can use any host address but usually use either the first or last host address in a network (.1 or .254) 192.168.1.254

     

     
     


    Now, in small networks such as at home, you will be on one subnet as there is an unlikely chance that you need more than 254 devices connected at one time.

    However, places such as businesses and offices will have much more of these devices (PCs, printers, cameras and sensors), where subnetting takes place.



    Subnetting provides a range of benefits, including:


        Efficiency
        Security
        Full control

       
       

    We'll come on to explore exactly how subnetting provides these benefits at a later date; however, for now, all we need to understand is the security element to it. Let's take the typical café on the street. This cafe will have two networks:


    One for employees, cash registers, and other devices for the facility
    One for the general public to use as a hotspot


    Subnetting allows you to separate these two use cases from each other whilst having the benefits of a connection to larger networks such as the Internet.


     

    1) What is the technical term for dividing a network up into smaller pieces?

    Ans - Subnetting



    2) How many bits are in a subnet mask?

    Ans - 32


    3) What is the range of a section (octet) of a subnet mask?

    Ans - 0-255



    4) What address is used to identify the start of a network?

    Ans - Network address



    5) What address is used to identify devices within a network?

    Ans - Host address



    6) What is the name used to identify the device responsible for sending data to another network?

    Ans - Default Gateway





    Hacking Truth
    Provided by Hacking Truth
     

    The ARP Protocol


    Recalling from our previous tasks that devices can have two identifiers: A MAC address and an IP address, the ARP protocol or Address Resolution Protocol for short, is the technology that is responsible for allowing devices to identify themselves on a network.

    Simply, the ARP protocol allows a device to associate its MAC address with an IP address on the network. Each device on a network will keep a log of the MAC addresses associated with other devices.

    When devices wish to communicate with another, they will send a broadcast to the entire network searching for the specific device. Devices can use the ARP protocol to find the MAC address (and therefore the physical identifier) of a device for communication.
     
     


    How does ARP Work?


    Each device within a network has a ledger to store information on, which is called a cache. In the context of the ARP protocol, this cache stores the identifiers of other devices on the network.



    In order to map these two identifiers together (IP address and MAC address), the ARP protocol sends two types of messages:


        ARP Request
        ARP Reply



    When an ARP request is sent, a message is broadcasted to every other device found on a network by the device, asking whether or not the device's MAC address matches the requested IP address. If the device does have the requested IP address, an ARP reply is returned to the initial device to acknowledge this. The initial device will now remember this and store it within its cache (an ARP entry).


    This process is illustrated in the diagram below:


     
     
     
    Master Local Area Network (LAN) Topologies In Just A Few Hours!

     
     
     
     
    1) What does ARP stand for?

    Ans - Address resolution protocol



    2) What category of ARP Packet asks a device whether or not it has a specific IP address?

    Ans - Request



    3) What address is used as a physical identifier for a device on a network?

    Ans - MAC Address



    4) What address is used as a logical identifier for a device on a network?


    Ans - IP address



     

     

     

    The DHCP Protocol


    IP addresses can be assigned either manually, by entering them physically into a device, or automatically and most commonly by using a DHCP (Dynamic Host Configuration Protocol) server. When a device connects to a network, if it has not already been manually assigned an IP address, it sends out a request (DHCP Discover) to see if any DHCP servers are on the network. The DHCP server then replies back with an IP address the device could use (DHCP Offer). The device then sends a reply confirming it wants the offered IP Address (DHCP Request), and then lastly, the DHCP server sends a reply acknowledging this has been completed, and the device can start using the IP Address (DHCP ACK).
     
     
     
     
    Master Local Area Network (LAN) Topologies In Just A Few Hours!

     
     
     
     
     
     
     

    1) What type of DHCP packet is used by a device to retrieve an IP address?

    Ans - DHCP Discover



    2) What type of DHCP packet does a device send once it has been offered an IP address by the DHCP server?

    Ans - DHCP Request



    3) Finally, what is the last DHCP packet that is sent to a device from a DHCP server?

    Ans - DHCP Ack



     
     
    Hacking Truth
    Provided by Hacking Truth
     
     
     
     

    Disclaimer

     

    All tutorials are for informational and educational purposes only and have been made using our own routers, servers, websites and other vulnerable free resources. we do not contain any illegal activity. We believe that ethical hacking, information security and cyber security should be familiar subjects to anyone using digital information and computers. Hacking Truth is against misuse of the information and we strongly suggest against it. Please regard the word hacking as ethical hacking or penetration testing every time this word is used. We do not promote, encourage, support or excite any illegal activity or hacking.



      - Hacking Truth by Kumar Atul Jaiswal



     

  • WHAT WE DO

    We've been developing corporate tailored services for clients for 30 years.

    CONTACT US

    For enquiries you can contact us in several different ways. Contact details are below.

    Hacking Truth.in

    • Street :Road Street 00
    • Person :Person
    • Phone :+045 123 755 755
    • Country :POLAND
    • Email :contact@heaven.com

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.