Skip to content

File Transfers ​

FieldValue
Module ID24
DifficultyMedium
TierTier 0
CategoryOffensive
Estimated Time3 hours
Cubes Earned0
Experience Points360
CreatorsPlainText, mrb3n
Last Updated2022-06-30T00:00:00.000000Z
URLhttps://academy.hackthebox.com/app/module/24

Module Includes ​

  • 10 Sections
  • 5 Interactive Exercises
  • 0 Assessments
  • 0 Cubes

Module Description ​

During an assessment, it is very common for us to transfer files to and from a target system. This module covers file transfer techniques leveraging tools commonly available across all versions of Windows and Linux systems.

Module Summary ​

This module introduces various methods for transferring files both from and to target Windows and Linux systems. The module relies on "living off the land" techniques or using built-in operating system utilities to our advantage. Operating systems and security monitoring capabilities can vary greatly across environments. The techniques covered in the module sections will prepare us for many scenarios in which we need to download a tool or file to a system or retrieve a file from a remote system for analysis on our attack box.

In this module, we will cover:

  • File transfer methods
  • Web servers
  • Common methods of detection
  • Evading detection

CREST CPSA/CRT-related Sections:

  • All sections

CREST CCT APP-related Sections:

  • All sections

CREST CCT INF-related Sections:

  • All sections

This module is broken down into sections with accompanying hands-on exercises to practice each of the tactics and techniques we cover. The module ends with a practical hands-on skills assessment to gauge your understanding of the various topic areas.

As you work through the module, you will see example commands and command output for the various topics introduced. It is worth reproducing as many of these examples as possible to reinforce further the concepts introduced in each section. You can do this in the Pwnbox provided in the interactive sections or your own virtual machine.

You can start and stop the module at any time and pick up where you left off. There is no time limit or "grading," but you must complete all of the exercises and the skills assessment to receive the maximum number of cubes and have this module marked as complete in any paths you have chosen.

The module is classified as "Medium" but assumes a working knowledge of the Linux command line and an understanding of information security fundamentals.

A firm grasp of the following modules can be considered prerequisites for successful completion of this module:

  • Introduction to Networking
  • Linux Fundamentals
  • Web Requests

Sections ​

10 sections - 5 Interactive

#GroupTypeTitle
1IntroductiontheoryFile Transfers
2File Transfer MethodsinteractiveWindows File Transfer Methods
3interactiveLinux File Transfer Methods
4interactiveTransferring Files with Code
5interactiveMiscellaneous File Transfer Methods
6theoryProtected File Transfers
7theoryCatching Files over HTTP/S
8interactiveLiving off The Land
9Detect or Be DetectedtheoryDetection
10theoryEvading Detection

Conclusion ​

This module covered methods for transferring files to and from Linux and Windows systems using built-in operating system tools, using both unstealthy and stealthy techniques. We completed various exercises to reinforce the various topics introduced throughout the module.

Module Key Takeaways

  • File transfer methods using tools such as PowerShell, Bitsadmin, Cerutil, Wget, cURL, and more
  • Performing file transfers using scripting and compiled languages such as PHP, Python, Ruby, Perl, and Golang
  • Transfering files using web servers and protocols such as SMB, SCP, FTP, TFTP, and RDP
  • Common file transfer detection methods
  • Tactics for evading detection when performing file transfers