Skip to main content

Posts

PROMPTS

 EXPLOITATION LERAN ME EXPLOITATION PHASE (PEN TESTING) STEP BY STEP, IN AN PROFESSIONAL WAY. I'M BUGINNER TO IT. I HAVE LEARN SCANNING. NOW ACCORDING TO SCANNING I HAVE DONE ACCORDINGLY GIVE ME COMMANDS, TECHNIQUES, METHODOLOGY TO DO EXPLOITATION FOT THE TIME BEING OONLY HELP ME IN EXPLOITATION. LATER POST-EXPLOITATION WHEN I WILL TOTALLY UNDERSTAND THE EXPLOITATION. THE SCANNING I HAVE DONE BEFORE IS.

Penetration Testing

=============================== Kali Linux =============================== Install Kali Linux in the virtual box in the windows operation system. Below is the link of the video which will demonstrate how to install kali linux in the virtual machine. https://www.youtube.com/watch?v=wCEPusruqQM SCANNING NMAP CHEAT SHEET (FULL + STEP-BY-STEP + EASY) For Kali Linux – Penetration Testing =============================== 1. BASIC DISCOVERY SCANS =============================== 1.1 Ping Scan (Find live hosts) nmap -sn <target/subnet> Purpose: Checks which hosts are online (no port scanning). Example: nmap -sn 192.168.1.0/24 1.2 Disable Ping (When host blocks ping) nmap -Pn <target> Purpose: Treats all hosts as online and scans even if ICMP is blocked. 1.3 Quick Scan of Top Ports nmap <target> Purpose: Scans top 1000 common TCP ports. =============================== 2. PORT SCANNING =============================== 2.1 Full TCP Port Scan (all 1–65535 ports) nmap -...

6_Observer Design Pattern

 observer design pattern is a behavioral design pattern. Behavioral design pattern deals with the interaction of object of different classes within the system. Definition: One Subject state is change, the observer get notified about the change. In Simple words When something happened, inform information to all people. You subscribe the channel(observer) The channel is subject When the new video is upload( state changes ), all subscribers are notified .  Php Code Example Step 1: Define observer Interface <?php interface Observer {     public function update ( string $message ); } ? > Step 2: Define Subject Interface <?php interface Subject {     public function attach ( Observer $observer );     public function detach ( Observer $observer );     public function notify ( string $message ); } ? > Step 3: Create Concrete Subject e.g New Publisher <?php class NewsPublisher implements Subject {     ...

5_example scenario of abstract pattern

 For creating better understanding, let implement the abstract design pattern the way it fit in real scenario. There ia a company on large scale build cars in large numbers. They build different types of cars. Petrol, Electric, Hybrid. But there was a big problem Problem: Wrong Parts, Wrong Car Car builder mixes the parts in cars, Put petrol engine in electric car and Electric tyres in Petrol car. In result the car explosion, customers got angry and choas! Than Leadership of the company summoned the best engineers to fix this problem. He said we need a system where, 1. Right part fit in the right car. 2. Builder no need to know the making of the parts they just build the car. 3. We can add new car easily in future. So Engineers decide to have a Abstract Factory Design pattern. Abstract Factory Engineer Build the abstract factory(Main Factory) that is blueprint(Interface). This will decide what will be build in the factory. <?php interface CarFactory {     public fun...

4_builder design pattern

What was the problem in factory design pattern? We create a class and assign all responsibilities for object creation. This class have static method also called static factory. Remember we pass parameters to factory method and these parameters will be pass to the next class constructor, whose object we want to create. What was the problem? The parameters we want to pass in next class constructor, first they all need to pass to factory method. The order of the parameters matters. Might be some parameters are optional. Therefore management of parameters is very difficult. Imagine you are building  a system for Car, Burger, Computer. These system have 1. multiple parts. 2. can be created with different configuration 3. some parts are optional 4. You can't pass 10+ argument to construction order management start complex. Without Builder pattern Your constructor is become messy. <?php $car = new Car ( "Red" , "SUV" , true , true , false , "Auto" , ...