Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

created a new tree layout for havocui #421

Merged
merged 2 commits into from
Oct 22, 2023
Merged

Conversation

p4p1
Copy link
Contributor

@p4p1 p4p1 commented Oct 21, 2023

new stuff

  • added the Tree() class
  • added Tree().addRow() to add sub elements to the tree
  • added Tree().setItem(x, y, elem) -> to add elements at specific positions
  • Ported setBottomTab and setSmallTab() from widget over to use the tree.
  • havoc.GetAgents() -> Will return the list of agents
  • havoc.GeneratePayload() -> Will generate a payload from the server and receive the base64 payload through a call back

sample code

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Made by papi
# Created on: Sat 21 Oct 2023 10:49:57 PM CEST
# current-file-name
# Description:

import havocui
import havoc


def catch_payload(data):
    print("received the  base64 payload:")
    print(data)
havoc.GeneratePayload(catch_payload, "Demon", "example listener", "x64", "Windows Exe", "{\"Amsi/Etw Patch\": \"None\",\"Indirect Syscall\": false,\"Injection\": {\"Alloc\": \"Native/Syscall\",\"Execute\": \"Native/Syscall\",\"Spawn32\": \"C:\\\\Windows\\\\SysWOW64\\\\notepad.exe\",\"Spawn64\": \"C:\\\\Windows\\\\System32\\\\notepad.exe\"},\"Jitter\": \"15\",\"Proxy Loading\": \"None (LdrLoadDll)\",\"Sleep\": \"2\",\"Sleep Technique\": \"WaitForSingleObjectEx\",\"Stack Duplication\": false}")


def selected_tree(data):
    print ("from python")
    print (data)

tree = havocui.Tree("Active Directory Data", selected_tree)

tree.addRow("Users", "me", "you", "us")
tree.addRow("Computer", "DC01", "WEB01", "FS01")
tree.setBottomTab()

screenshot

image

@S4ntiagoP S4ntiagoP merged commit 3d3278d into HavocFramework:dev Oct 22, 2023
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants