-->

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.

Showing posts with label Offensive Security. Show all posts
Showing posts with label Offensive Security. Show all posts
  • Folder Backup Automation in Batch Scripting

     

    Folder Backup Automation in Batch Scripting

     

     



    Folder Backup Automation in Batch Scripting | Automatically Backup Any Folder


    Backing up important folders is one of the most common tasks performed by IT Support Engineers and System Administrators. Instead of copying files manually every day, you can automate the process with a simple Batch Script.

    In this tutorial, we'll create a Folder Backup Automation script that copies a selected folder to a backup location automatically.



    Batch Script



    @echo off

    set SourceFolder=C:\Users\%USERNAME%\Documents

    set BackupFolder=D:\Backup

    if not exist "%BackupFolder%" (
        mkdir "%BackupFolder%"
    )

    xcopy "%SourceFolder%" "%BackupFolder%\Documents" /E /I /Y

    echo.
    echo Folder Backup Completed Successfully.

    pause




    How the Script Works


    #Step 1: Turn Off Command Display

    @echo off

    This hides the commands while the script runs, making the output cleaner.


    #Step 2: Set the Source Folder

    • set SourceFolder=C:\Users\%USERNAME%\Documents



    The variable `SourceFolder` stores the folder you want to back up.

    The `%USERNAME%` environment variable automatically inserts the name of the currently logged-in Windows user.



    #Step 3: Set the Backup Location

    • set BackupFolder=D:\Backup


    This defines where the backup will be stored.

    You can change this location to another drive or folder if needed.



    #Step 4: Create the Backup Folder

    if not exist "%BackupFolder%" (
        mkdir "%BackupFolder%"
    )


    If the backup folder doesn't already exist, the script creates it automatically.


    #Step 5: Copy the Files

    xcopy "%SourceFolder%" "%BackupFolder%\Documents" /E /I /Y

    The `xcopy` command copies all files and folders.



    #XCOPY Options



    | Option | Description                                 |
    |  | - |
    | `/E`   | Copies all folders, including empty folders |
    | `/I`   | Creates the destination folder if needed    |
    | `/Y`   | Overwrites existing files without asking    |



    #Step 6: Display Success Message
    echo Folder Backup Completed Successfully.


    This informs the user that the backup process has completed.


    #Step 7: Pause the Script
    pause


    Keeps the Command Prompt window open until a key is pressed.

    Sample Output

    Folder Backup Completed Successfully.

    Press any key to continue . . .




    Why Automate Folder Backups?


    Automating backups helps you:

    • * Protect important files
    • * Save time
    • * Reduce manual work
    • * Minimize the risk of data loss
    • * Keep regular backups without repeating the same steps




    Real-World Uses


    IT Support Engineers and System Administrators commonly use folder backup scripts to:

    * Backup user Documents before Windows reinstallation
    * Copy project files to another drive
    * Protect company data
    * Create backups before software upgrades
    * Automate daily maintenance tasks



    Customize the Script


    You can back up other folders by changing the `SourceFolder` variable.

    Examples:

    Desktop
    C:\Users\%USERNAME%\Desktop


    Downloads
    C:\Users\%USERNAME%\Downloads


    Pictures
    C:\Users\%USERNAME%\Pictures


    You can also change the destination folder to another drive, external USB device, or network location if accessible.



    Commands Used



     

    Folder Backup Automation in Batch Scripting





    Interview Questions


    #What does `xcopy` do?

    • It copies files and folders from one location to another.


    #Why is `if not exist` used?

    • It checks whether the destination folder exists before creating it.


    #What does `%USERNAME%` represent?

    • It stores the name of the currently logged-in Windows user.

    #What is the purpose of `/E` in `xcopy`?

    • It copies all folders, including empty ones.

    #Why should folder backups be automated?

    • Automation saves time, reduces manual effort, and helps protect important data.




    Conclusion


    Folder Backup Automation is a practical Batch Scripting project that demonstrates how to automate one of the most common Windows administration tasks. By combining variables, folder checks, and the `xcopy` command, you can create a reliable backup solution for personal or professional use.

    If you're preparing for an IT Support Engineer, Desktop Support Engineer, or System Engineer role, this project showcases your ability to automate routine maintenance tasks and is a valuable addition to your Batch Scripting portfolio.
     

     

  • HACK Your Offensive Security Side


    HACK Your Offensive Security Side

     

    HACK Your Offensive Security Side


    In short, offensive security is the process of breaking into computer systems, exploiting software bugs, and finding loopholes in applications to gain unauthorized access to them.


    To beat a hacker, you need to behave like a hacker, finding vulnerabilities and recommending patches before a cybercriminal does.

    On the flip side, there is also defensive security, which is the process of protecting an organization's network and computer systems by analyzing and securing any potential digital threats; learn more in the digital forensics room.

    In a defensive cyber role, you could be investigating infected computers or devices to understand how it was hacked, tracking down cybercriminals, or monitoring infrastructure for malicious activity.


    Practical


    First of for your kind information all kinds of things which is used here all exercises are fake simulations so don't panic and don't go dark side okay!!.


    Find hidden website pages



    Most companies will have an admin portal page, giving their staff access to basic admin controls for day-to-day operations. For a bank, an employee might need to transfer money to and from client accounts. Often these pages are not made private, allowing attackers to find hidden pages that show, or give access to, admin controls or sensitive data.


    HACK Your Offensive Security Side



    Type the following command into the terminal to find potentially hidden pages on FakeBank's website using GoBuster (a command-line security application).


    gobuster -u http://420fakebank.co.uk -w wordlist.txt dir




    HACK Your Offensive Security Side





    In the command above, -u is used to state the website we're scanning, -w takes a list of words to iterate through to find hidden pages.

    You will see that GoBuster scans the website with each word in the list, finding pages that exist on the site. GoBuster will have told you the pages it found in the list of page /directory names (indicated by Status: 200).




    Hack the bank


    You should have found a secret bank transfer page that allows you to transfer money between accounts at the bank (/bank-transfer). Type the hidden page into the FakeBank website on the machine.

     

     

    HACK Your Offensive Security Side
     



    This page allows an attacker to steal money from any bank account, which is a critical risk for the bank. As an ethical hacker, you would (with permission) find vulnerabilities in their application and report them to the bank to fix before a hacker exploits them.

     

     

    HACK Your Offensive Security Side

     

     


    Transfer $2000 from the bank account 2276, to your account (account number 8881).




    HACK Your Offensive Security Side



    How can I start learning?


    People often wonder how others become hackers (security consultants) or defenders (security analysts fighting cybercrime), and the answer is simple. Break it down, learn an area of cyber security you're interested in, and regularly practice using hands-on exercises. Build a habit of learning a little bit each day on differnt types of website, and you'll acquire the knowledge to get your first job in the industry.



    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.


     

  • 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.