Caster - Console
Introduction To Casters Console
Last updated
Introduction To Casters Console
Last updated
The console within Caster is a bit of a unique setting, see with this console you can do more enumeration, much more interactive actions and view data a lot easier. For example, when trying to find all strings using strings
in Linux- you can easily find all the strings, but it will just be basic output, and sometimes, some files may be give you too many strings-
Caster's module on the other hand was built for this, to find very specific information, so it will highlight specific information based on REGEX patterns used. The demonstration is set below.
Notice how it highlights it? Yeah, the same goes here for other modules. Using the console gives you a core advantage over some various other tools and frameworks that may be used externally to Caster. So, in order to use the console, you need to use it.
The help menu is something I felt was important for people who may not understand everything. So, lets go ahead and pick it apart. The flag to get console help is --consolehelp
When you view the console help menu, you get the following.
The screenshot shows one message up top which talks to you about the root syntax for console modules and commands then two tables showcasing the console modules and the commands for each module.
The next few sections will explain the three parts of this screenshot in depth.
The console syntax has a very specific need to be unique, so, the way we made it adaptable for everyone while remaining some sort of unique is by building some modules and having a tree list of commands under that module.
The general console command must be THE MODULE FIRST and then the COMMAND second. For example.
set target=10.0.0.10
The set
is the name of the module you are going to be running a command on, target
is the command for the set
module and then anything after the =
sign is going to be the value you are setting.
The console does not have many single commands, but there is one called import
which will basically tell the Plugin module to export and write all currently known or scanned hosts to the Scan.json
file and then import them into the virtual environment Caster uses.
Import is the only command that is single and does not require second or third commands.
Console modules break up into many different types of categories and tasks known as sub-categories. So, this section will be here to explain the three types of modules and then brand off into their own commands which was shown in the table above.
Module | set
The set
the module only has one possible command device
. This will basically just set the target device by IP address that you want to make sure Caster targets.
Syntax: set device=x.x.x.x
--> Replace x.x.x.x
with the IP address you have
Module | view
As you can imagine, view is a type of module that is directed to the output stream that Caster creates. Anything from modules and settings to specific hosts and capture info is shown here. The following commands are defined.
clear --> This command will completely clear all of the output from Caster
Used as - view clear
clearout --> This command will completely clear all of the output but also print the Caster banner.
Used as view clearout
hosts --> This command will output a simple table of all of the hosts that was captured along with their MAC and OUI.
Used as view hosts
view <brand>
This is the rest of the view module and it deserves its own section for a deeper explanation. Basically, replace <brand>
with a valid and supported brand in Caster and it will attempt to use direct pattern matching to find every device within the exported scan data and then output its details in a table.
For example, using the command view amazon
on this test data shows the following.
view modules
The last and final command in the view module to go over is going to be the settings
the command that we already went over.
Module | enumerate
Enumerate is the primary module for everything- it is the one module that makes HTTP requests, a module that parses data, a module that formats and retrieves data, and so on from there. It is the device enumeration and information-gathering module. This module has a ton of commands to it so we are just going to go by brand name of devices. Which is on the next page in order from the most lowest brand to the highest and most manipulatable brand.
List -
Apple
Amazon
Roku