Hacking Articles Tips Tricks Videos Tutorials
468 subscribers
65.9K photos
15 videos
157 files
132K links
Exploit
Pentesting
Hacking
Red Team
Blue Team
Kali Linux
Bug Bounty
Black Hat
Cyber security etc

@Hacking_Video
@Hacking_attack
Download Telegram
Hacking Articles Tips Tricks Videos Tutorials
lp message and exit Common Usage NotesFor every subcommand, you can get more detailed help by calling JAF with the subcommand and no additional options (or the -h option). Server URLFor every command (other than requesting help), the -s command is required.…
ole Access (script), Scriptler Groovy Script Plugin Access (scriptler)

usage: jaf.py AccessCheck [-h] -s ConsoleOutputThis method dumps the console output for the last build of every job that the user can see. You need at least job viewing privileges which is not always possible to determine. This can and often does result in gigabytes (or even terabytes) of output.

usage: jaf.py ConsoleOutput [-h] -s CreateAPITokenUsed to create an API Token for the user who’s credentials are supplied. If the –user option is passed, this command will instead create an API token for the supplied user (but you must have administrative /script console access to do this).

Token Name is entirely optional and can be anything even a duplicate of an existing token name. Tokens are shown under the user’s configure page (/user/___________________________
@hacking_Attack
@Hacking_Video
Hacking Articles Tips Tricks Videos Tutorials
ole Access (script), Scriptler Groovy Script Plugin Access (scriptler) usage: jaf.py AccessCheck [-h] -s ConsoleOutputThis method dumps the console output for the last build of every job that the user can see. You need at least job viewing privileges which…
that is not too
suspicious). Can be duplicated (There do not appear to
be any restrictions on token names). If not provided,
only token creation date will be shown on user’s page.

optional arguments:
-h, –help                    show this help message and exit
-s DeleteAPITokenUsed to delete an API Token for the user who’s credentials are supplied. If the –user option is passed, this command will instead delete the API token for the supplied user (but you must have administrative /script console access to do this).

Token Name or UUID is required to actually delete a token. If not supplied, this function effectively acts like ListAPITokens and returns a list of existing tokens. If a Token Name is supplied this command will try to delete that token and alert you on success or failure. If the name matches multiple tokens, no token will be deleted, and you will receive an error message. In that case, you should instead list tokens (either by calling DeleteAPIToken with no additional arguments, or via calling ListAPITokens), then try again with a Token UUID. Deleted tokens cannot be restored, so make sure you are certain before attempting.

usage: jaf.py DeleteAPIToken [-h] -s DeleteJobAttempts to delete a Jenkins job. If the user does not have the rights, this will instead, attempt to delete all build logs, overwrite the job with a blank job, and then disable the job.

usage: jaf.py DeleteJob [-h] -s ___________________________
@hacking_Attack
@Hacking_Video
Hacking Articles Tips Tricks Videos Tutorials
that is not too suspicious). Can be duplicated (There do not appear to be any restrictions on token names). If not provided, only token creation date will be shown on user’s page. optional arguments: -h, –help                    show this help message and…
timeout
HTTP Request Timeout (in seconds). Defaults to: 30
-o Output File, –output Output File
Write Output to File
-a [DumpCredsShould be self explanatory, but this does require administrative credentials with /script access.

usage: jaf.py DumpCreds [-h] -s DumpCredsViaJobDump credentials by creating a Job and explicitly enumerating echoing out all the credentials that are stored and accessible to the user. These credentials are then Base64 encoded so as to prevent Jenkins from redacting them. The credentials are retrieved and formatted. User must have at least Job creation privileges.

usage: jaf.py DumpCredsViaJob [-h] -s ListAPITokensMethod simply lists all existing API Tokens for the user who’s creds you supplied. If the –user option is passed, this command will instead list the API tokens for the supplied user (but you must have administrative /script console access to do this).

The actual API Tokens cannot be recovered as only a hash is stored, and only Admin users can even access these hashes. So this method is really only useful for getting a list before trying to use CreateAPIToken or DeleteAPIToken.

usage: jaf.py ListAPITokens [-h] -s ___________________________
@hacking_Attack
@Hacking_Video
Hacking Articles Tips Tricks Videos Tutorials
timeout HTTP Request Timeout (in seconds). Defaults to: 30 -o Output File, –output Output File Write Output to File -a [DumpCredsShould be self explanatory, but this does require administrative credentials with /script access. usage: jaf.py DumpCreds [-h]…
List API Tokens for your user

optional arguments:
-h, –help                    show this help message and exit
-s ListJobsMethod simply lists all jobs on the server, recursively.

usage: jaf.py ListJobs [-h] -s RunCommandThis method wraps passed system commands to capture stdout and stderr and return it. Requires administrative credentials with /script access.

usage: jaf.py RunCommand [-h] -s RunJobAllows you to run jobs via Jenkins. The command will upload your script or executable and then execute it. The -e option allows you to specify what program is called to execute your uploaded script, otherwise the script is executed by the default handler. The -A allows you to specify an argument string to pass to your script or executable. For exmple, if both the -e and -A option were passed, your file would be executed in this fashion: ___________________________
@hacking_Attack
@Hacking_Video
Hacking Articles Tips Tricks Videos Tutorials
List API Tokens for your user optional arguments: -h, –help                    show this help message and exit -s ListJobsMethod simply lists all jobs on the server, recursively. usage: jaf.py ListJobs [-h] -s RunCommandThis method wraps passed system commands…
This is an excellent way to upload a SOCKS5 server to a slave and run it on a high port to tunnel traffic with only Create Job permissions.

GHOSTJOB OPSEC WARNING 1: In the case of running a GHOST job on a Windows slave, a helper executable is uploaded. If the slave is running as an administrative user, wmic process call create is used as part of the job termination bypass. You should not use this technique if the Windows Slaves are running EDR.

GHOSTJOB OPSEC WARNING 2: You should ensure that your payloads are designed in such a way as to handle deleting themselves upon completion as in the case of Windows slaves, JAF cannot automatically do this.
usage: jaf.py RunJob [-h] -s RunScriptShould be self explanatory, but this does require administrative credentials with /script access.

usage: jaf.py RunScript [-h] -s ___________________________
@hacking_Attack
@Hacking_Video
Hacking Articles Tips Tricks Videos Tutorials
This is an excellent way to upload a SOCKS5 server to a slave and run it on a high port to tunnel traffic with only Create Job permissions. GHOSTJOB OPSEC WARNING 1: In the case of running a GHOST job on a Windows slave, a helper executable is uploaded. If…
SIONID
cookie string

-x, –no_wait                  Do not wait for Output
-N UploadFileThis method requires administrative credentials with /script access. This method works by chunking files into pieces small enough to post to the Jenkins server as base64 encoded chunks that are decoded via groovy commands in the console and appended to a file. For this to work, you should ensure that the upload file path is:

1. a full path (no ~ or other expansion will be done, nor folders created).
2. write-able by the jenkin’s system user.
3. In the path format for the OS in use.

In addition, it is critical that the file does not already exist. Due to the multiple chunk nature, this process is additive. An existing file will result in the upload file being appended to the existing file.
usage: jaf.py UploadFile [-h] -s WhoAmIThis method is basically a usability wrapper around /api/whoAmI. This page shows the current logged-in users all the Jenkins groups they are in. In the case of a LDAP/Domain-Connected Jenkins, this also includes all domain groups for the user (recursively or not depends on admin settings).

usage: jaf.py WhoAmI [-h] -s Version Info:This should be kept up to date with the latest version info at the top. 1.5.2Added a bit more positive confirmation when using RunJob with the -g or -x options. 1.5.1Added the DeleteJob feature to complement RunJob and ListJob. 1.5Added the RunJob feature includin[...]

___________________________
@hacking_Attack
@Hacking_Video
Hacking Articles Tips Tricks Videos Tutorials
SIONID cookie string -x, –no_wait                  Do not wait for Output -N UploadFileThis method requires administrative credentials with /script access. This method works by chunking files into pieces small enough to post to the Jenkins server as base64…
g the very powerful GhostJob feature.

Other minor bug fixes, more unit tests, and templating updates. 1.4.1More code improvements and clean ups.

Added –user option for these commands: CreateAPIToken, DeleteAPIToken, ListAPITokens 1.4More code improvements and clean ups.

Added three new API Token Commands (and corresponding unit tests): CreateAPIToken, DeleteAPIToken, ListAPITokens 1.3Fixed a bunch of little bugs.

Wrote a Unit Test Framework for this tool.

Many minor code clean-ups.

Pulled the install_dependencies.sh script into the main jaf wrapper script. 1.2Major Code Refactor with Plugin Framework.

Added new “DumpCredsViaJob” method.

Added node/slave specification for many of the commands: DumpCreds, DumpCredsViaJob, RunCommand, RunScript, UploadFile

Fixed a bug in UploadFile where back slashes were not being properly escaped in paths.

Updated Credential Dumping Script to dump more types of credentials and domain and ldap binding credentials. 1.1Fixed some authentication bugs. 1.0Due to the full re-write/rebranding of Jenkins Miner, this is now version 1.0 of the Jenkins Attack Framework.
See Also: Offensive Security Tool: Pegasus Spyware – Decompiled Recent Tools* https://www.blackhatethicalhacking.com/wp-content/uploads/2021/09/pegasus-90x90.png Offensive Security Tool: Pegasus Spyware – Decompiled1 week ago
* https://www.blackhatethicalhacking.com/wp-content/uploads/2021/08/FIbbZME-90x90.png Offensive Security Tool: Starkiller2 weeks ago
* https://www.blackhatethicalhacking.com/wp-content/uploads/2021/08/0URVvVK54SOsx1MEq-90x90.png Offensive Security Tool: FFUF3 weeks ago
* https://www.blackhatethicalhacking.com/wp-content/uploads/2021/08/687474703a2f2f633666632e696f2f77617263616e6e6f6e2d636c692e706e67-90x90.png Offensive Security Tool: Warcannon4 weeks ago
* https://www.blackhatethicalhacking.com/wp-content/uploads/2021/08/2-7-90x90.png Offensive Security Tool: Mimikatz1 month ago
* https://www.blackhatethicalhacking.com/wp-content/uploads/2021/07/Screenshot_20210729_145513-90x90.png Offensive Security Tool: Ruler1 month ago
* https://www.blackhatethicalhacking.com/wp-content/uploads/2021/07/VoIPsniffer-90x90.png Offensive Security Tool: VoIPmonitor Sniffer2 months ago
* https://www.blackhatethicalhacking.com/wp-content/uploads/2021/07/57177630ce750eb1ad40649424d04b9c-90x90.jpeg Offensive Security Tool: Veil2 months ago
* https://www.blackhatethicalhacking.com/wp-content/uploads/2021/07/Untitled-design-90x90.png Offensive Security Tool: It Was All A Dream (Windows Print Spooler RCE)2 months ago
* https://www.blackhatethicalhacking.com/wp-content/uploads/2021/07/unknown-e1625210118591-90x90.png Offensive Security Tool: GoSpider2 months ago
style="display:block; text-align:center;"
data-ad-layout="in-article"
data-ad-format="fluid"
data-ad-client="ca-pub-6620833063853657"
data-ad-slot="4517761481">
The post Offensive Security Tool: Jenkins Attack Framework first appeared on Black Hat Ethical Hacking.

___________________________
@hacking_Attack
@Hacking_Video
$5000 Google IDOR Vulnerability Writeup

This story is not applicable to $5000 rewardContinue reading on Medium »
Read more...
hacking: security in practice
Alternative to zshadow

I could get phishing links for Insta and Facebook from Z-shadow but not it doesn't seem to work. Can you suggest an alternative please.

submitted by /u/Strong_Badger98
[link] [comments]

___________________________
@hacking_Attack
@Hacking_Video