Comments (6)
The NetGetJoinInformation winapi function can be used to get the domain name along with determining if the computer is domain joined or workgroup joined. The implementation I have in tetanus only returns the domain name for the system and not its domain joined status.
This looks like a better API function than what I have right now so I may migrate to it later in the future. Luckily, it's included in the winapi crate https://docs.rs/winapi/latest/winapi/um/lmjoin/fn.NetGetJoinInformation.html.
I could try to knock this out if you would like?
from offensivenotion.
@MEhrn00 I haven't forgotten about this! I did some tests last night on my SLOTHCO domain controller and made some changes to the code, I'll pull this into your branch tonight so you can see
from offensivenotion.
- Username
- Hostname
- Domain name
- Is Domain Joined?
from offensivenotion.
Domain guardrail can be implemented similarly to Tetanus agent
from offensivenotion.
@MEhrn00 check out the changes in 746d1ee
Only two changes: the first is that the agent would not compile the Linux build due to the conditional compilation flags around the env checks. The second was to switch the assertion (key domain == domain) to a substring match. For some reason, even though they were completely identical, I could never get the domain name (slothco.lan) to match the env check and it always failed. The substring match now passes and the check works.
edit: and of course I added something in main.py to handle the new check!
from offensivenotion.
Impl in 9c4b547 by @MEhrn00! Ty fam 🤘
from offensivenotion.
Related Issues (20)
- [Documentation/Wiki] Collab Shoutout Section 🤘 HOT 1
- [Refactor] Migrate Windows functions to the windows crate HOT 1
- [New Feature] `maketoken`/`rev2self` HOT 1
- [Release] Damascus 1.2.0 HOT 2
- [New Feature] `exfil` HOT 1
- [Docs/Wiki] Contribution Guide HOT 3
- [Bug] `main.py` does not check for or confirm the `LAUNCH_APP` config option. HOT 1
- [New Feature] `getsystem` HOT 1
- [New Feature] Upload via Cloud Storage HOT 2
- [New Feature] COFF loader HOT 1
- Modularize Notion Interaction
- `Channel` Trait for other LOTS channels
- `ChannelConfig`
- `notion_out!` -> `command_out!` HOT 1
- inject shellcode error HOT 5
- Will selfdestruct affect persist? HOT 1
- OPSEC Offensive Notion HOT 1
- GitHub Channel
- [Bug]Hello, windows proxy generation failed, the following is the error message, can you help solve it HOT 3
- Agent-Listener Communication HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from offensivenotion.