Omega - From Wordpress admin to pty

Overview

GitHub GitHub

Omega - From Wordpress admin to pty

The Linux tool to automate the process of getting a pty once you got admin credentials in a Wordpress site. Keep in mind that right now Omega only can attack Linux hosts.

Omega getting a pty to a Wordpress host

How does it work?

First, Omega gets an admin session in the Wordpress site and using web scrapping, it extracts the current template used by wordpress. After that, it will use the template editor to inject a simple web shell.

Once everything is set up, Omega will spin up a listenner, execute a reverse shell using the web shell injected and wait for the shell to connect back. Before giving the control to the user, Omega will try to stabilize the shell and get a pty.

If stabilization is not possible using the methods Omega has, a non tty shell will be provided that can be stabilize without problems using any method you want.

Requirements

You need Python 3 installed in your system and also some dependencies that can be installed executing (Keep in mind that this tool only works in Linux):

pip3 install -r requirements.txt

You can use a virtual env to install the dependencies or intall them system wide.

Usage

If you have all the requirements you can start playing with Omega! You can add the repository folder to your PATH and execute the tool everywhere.

Omega - From Wordpress admin to pty

usage: omega.py [-h] [-v] [--no-pty] -u WP_URL -l USERNAME -p PASSWORD -H LHOST [-P LPORT]

Provides a reverse shell (stabilized if possible) to a Wordpress host. You need admin credentials!

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  --no-pty              if this flag is set, no shell stabilization is perform
  -u WP_URL, --wp-url WP_URL
                        the target Wordpress url
  -l USERNAME, --username USERNAME
                        Wordpress admin user to use for login
  -p PASSWORD, --password PASSWORD
                        Wordpress admin password to use for login
  -H LHOST, --lhost LHOST
                        the ip where the reverse shell should connect to
  -P LPORT, --lport LPORT
                        the port used to listen for the reverse shell (Default: 8080)
You might also like...
The Django Leaflet Admin List package provides an admin list view featured by the map and bounding box filter for the geo-based data of the GeoDjango.
The Django Leaflet Admin List package provides an admin list view featured by the map and bounding box filter for the geo-based data of the GeoDjango.

The Django Leaflet Admin List package provides an admin list view featured by the map and bounding box filter for the geo-based data of the GeoDjango. It requires a django-leaflet package.

Django Admin Two-Factor Authentication, allows you to login django admin with google authenticator.
Django Admin Two-Factor Authentication, allows you to login django admin with google authenticator.

Django Admin Two-Factor Authentication Django Admin Two-Factor Authentication, allows you to login django admin with google authenticator. Why Django

aiohttp admin is generator for admin interface based on aiohttp
aiohttp admin is generator for admin interface based on aiohttp

aiohttp admin is generator for admin interface based on aiohttp

WordPress models and views for Django.

django-wordpress Models and views for reading a WordPress database. Compatible with WordPress version 3.5+. django-wordpress is a project of ISL and t

BuddyPress is an open source WordPress plugin to build a community site. In releases of BuddyPress from 5.0.0 before 7.2.1 it's possible for a non-privileged, regular user to obtain administrator rights by exploiting an issue in the REST API members endpoint. The vulnerability has been fixed in BuddyPress 7.2.1. Existing installations of the plugin should be updated to this version to mitigate the issue.
Sail is a free CLI tool to deploy, manage and scale WordPress applications in the DigitalOcean cloud.

Deploy WordPress to DigitalOcean with Sail Sail is a free CLI tool to deploy, manage and scale WordPress applications in the DigitalOcean cloud. Conte

WordPress look and feel for Django administration panel
WordPress look and feel for Django administration panel

Django WP Admin WordPress look and feel for Django administration panel. Features WordPress look and feel New styles for selector, calendar and timepi

Manage your WordPress installation directly from SublimeText SideBar and Command Palette.
Manage your WordPress installation directly from SublimeText SideBar and Command Palette.

WordpressPluginManager Manage your WordPress installation directly from SublimeText SideBar and Command Palette. Installation Dependencies You will ne

WordPress-style shortcodes for Python

Python Shortcodes WordPress-style shortcodes for Python Create and use WordPress-style shortcodes in your Python based app. Example # static output de

Modern responsive template for the Django admin interface with improved functionality. We are proud to announce completely new Jet. Please check out Live Demo
Modern responsive template for the Django admin interface with improved functionality. We are proud to announce completely new Jet. Please check out Live Demo

Django JET Modern template for Django admin interface with improved functionality Attention! NEW JET We are proud to announce completely new Jet. Plea

Drop-in replacement of Django admin comes with lots of goodies, fully extensible with plugin support, pretty UI based on Twitter Bootstrap.
Drop-in replacement of Django admin comes with lots of goodies, fully extensible with plugin support, pretty UI based on Twitter Bootstrap.

Xadmin Drop-in replacement of Django admin comes with lots of goodies, fully extensible with plugin support, pretty UI based on Twitter Bootstrap. Liv

Real-time monitor and web admin for Celery distributed task queue

Flower Flower is a web based tool for monitoring and administrating Celery clusters. Features Real-time monitoring using Celery Events Task progress a

A jazzy skin for the Django Admin-Interface (official repository).

Django Grappelli A jazzy skin for the Django admin interface. Grappelli is a grid-based alternative/extension to the Django administration interface.

A Django admin theme using Twitter Bootstrap. It doesn't need any kind of modification on your side, just add it to the installed apps.
A Django admin theme using Twitter Bootstrap. It doesn't need any kind of modification on your side, just add it to the installed apps.

django-admin-bootstrapped A Django admin theme using Bootstrap. It doesn't need any kind of modification on your side, just add it to the installed ap

django's default admin interface made customizable. popup windows replaced by modals. :mage: :zap:
django's default admin interface made customizable. popup windows replaced by modals. :mage: :zap:

django-admin-interface django-admin-interface is a modern responsive flat admin interface customizable by the admin itself. Features Beautiful default

Extendable, adaptable rewrite of django.contrib.admin
Extendable, adaptable rewrite of django.contrib.admin

django-admin2 One of the most useful parts of django.contrib.admin is the ability to configure various views that touch and alter data. django-admin2

FastAPI Admin Dashboard based on FastAPI and Tortoise ORM.
FastAPI Admin Dashboard based on FastAPI and Tortoise ORM.

FastAPI ADMIN 中文文档 Introduction FastAPI-Admin is a admin dashboard based on fastapi and tortoise-orm. FastAPI-Admin provide crud feature out-of-the-bo

Modern theme for Django admin interface
Modern theme for Django admin interface

Django Suit Modern theme for Django admin interface. Django Suit is alternative theme/skin/extension for Django administration interface. Project home

Django application and library for importing and exporting data with admin integration.
Django application and library for importing and exporting data with admin integration.

django-import-export django-import-export is a Django application and library for importing and exporting data with included admin integration. Featur

Comments
  • Feature: Windows hosts compatibility

    Feature: Windows hosts compatibility

    Description

    • Add Windows hosts compatibility! (Thanks to ivan-sincek for his PHP reverse shell)
    • Improve the README a bit
    • Added the use of random user agents in every run
    enhancement 
    opened by anthares101 0
  • Feature: Auto shell stabilization

    Feature: Auto shell stabilization

    Description

    • Added auto shell stabilization! Omega will try some methods to get a pty and upgrade the obtained shell
    • Added new flag to let the user decide if shell stabilization should be perform
    • Dropped Windows support to be able to use termios for tty configuration
    • Added tests (better late than never you know)
    enhancement 
    opened by anthares101 0
Releases(v2.6)
  • v2.6(Jan 3, 2022)

    Features

    • Now the Linux and MacOS reverse shell stabilization should work as expected

    Known issues

    • Upgrading the shell manually and then exit makes the terminal unresponsive. A workaround to this is to add ; exit to the code used to get a pty. This way, the Omega handler will take care of restoring your terminal
    • If the current Wordpress template doesn't have a 404 php file Omega is not able to inject the payload
    Source code(tar.gz)
    Source code(zip)
  • v2.5(Aug 1, 2021)

    Features

    • Updated the repository structure
    • Omega available throught Pypi!

    Known issues

    • Upgrading the shell manually and then exit makes the terminal unresponsive. A workaround to this is to add ; exit to the code used to get a pty. This way, the Omega handler will take care of restoring your terminal
    Source code(tar.gz)
    Source code(zip)
  • v2.4(Jul 31, 2021)

    Fixes

    • Changed Windows shell code to avoid the shell closing issue (#6)

    Known issues

    • Upgrading the shell manually and then exit makes the terminal unresponsive. A workaround to this is to add ; exit to the code used to get a pty. This way, the Omega handler will take care of restoring your terminal
    Source code(tar.gz)
    Source code(zip)
  • v2.3(Jul 31, 2021)

    Fixes

    • Shell output after upgrade wasn't always cleared (#5)
    • A README typo

    Known issues

    • Upgrading the shell manually and then exit makes the terminal unresponsive. A workaround to this is to add ; exit to the code used to get a pty. This way, the Omega handler will take care of restoring your terminal
    • Windows shells are not closed smoothly.
    Source code(tar.gz)
    Source code(zip)
  • v2.2(Jul 31, 2021)

    Fixes

    • The code that checked if a reverse shell was updated to work properly (#4)

    Known issues

    • Upgrading the shell manually and then exit makes the terminal unresponsive. A workaround to this is to add ; exit to the code used to get a pty. This way, the Omega handler will take care of restoring your terminal
    • Windows shells are not closed smoothly.
    Source code(tar.gz)
    Source code(zip)
  • v2.1(Jul 29, 2021)

    Features

    • Added Windows hosts compatibility! Omega is able to get a shell even with in Windows hosts now (#3). Thanks to ivan-sincek for his PHP reverse shell.
    • Added the use of random user agents in every run

    Known issues

    • Upgrading the shell manually and then exit makes the terminal unresponsive. A workaround to this is to add ; exit to the code used to get a pty. This way, the Omega handler will take care of restoring your terminal
    • Windows shells are not closed smoothly.
    Source code(tar.gz)
    Source code(zip)
  • v2.0(Jul 16, 2021)

    Features

    • Added auto shell stabilization! Omega will try some methods to get a pty and upgrade the obtained shell (#2)
    • Added new flag to let the user decide if shell stabilization should be perform (#2)
    • Dropped Windows support to be able to use termios for tty configuration (#2)
    • Added tests (better late than never you know) (#2)

    Known issues

    • Upgrading the shell manually and then exit makes the terminal unresponsive. A workaround to this is to add ; exit to the code used to get a pty. This way, the Omega handler will take care of restoring your terminal
    Source code(tar.gz)
    Source code(zip)
  • v1.2(Jul 16, 2021)

    Features

    • Added a version flag to check the tool version in use (#1)

    Known issues

    • Upgrading the shell and then exits makes the terminal unresponsive
    Source code(tar.gz)
    Source code(zip)
  • v1.1(Jul 13, 2021)

    Fixes

    • If the site doesn't have xmlrpc open the attack fails

    Known issues

    • Upgrading the shell and then exits makes the terminal unresponsive
    Source code(tar.gz)
    Source code(zip)
  • v1.0(Jul 13, 2021)

    Features

    • Omega first version complete! (Only for Linux targets)
    • Detect if the user specified is admin throgh xmlrpc
    • Create a Wordpress session and interact with the admin site
    • Get the active theme name
    • Drop a simple web shell payload into the current theme 404 page template
    • Get and manage a reverse shell that can be upgraded

    Known issues

    • If the site doesn't have xmlrpc open the attack fails
    • Upgrading the shell and then exits makes the terminal unresponsive
    Source code(tar.gz)
    Source code(zip)
Owner
Ángel Heredia
Always learning new things
Ángel Heredia
com_media allowed paths that are not intended for image uploads to RCE

CVE-2021-23132 com_media allowed paths that are not intended for image uploads to RCE. CVE-2020-24597 Directory traversal in com_media to RCE Two CVEs

KIEN HOANG 67 Nov 09, 2022
Installation of hacking tools

Tools-Spartan This is a program that makes it easy for you to download and install tools used in Kali Linux, there are tons of tools available.

1 Nov 10, 2021
Log4Shell RCE Exploit - fully independent exploit does not require any 3rd party binaries.

Log4Shell RCE Exploit fully independent exploit does not require any 3rd party binaries. The exploit spraying the payload to all possible logged HTTP

258 Jan 02, 2023
CVE-2021-45232-RCE-多线程批量漏洞检测

CVE-2021-45232-RCE CVE-2021-45232-RCE-多线程批量漏洞检测 FOFA 查询 title="Apache APISIX Das

孤桜懶契 36 Sep 21, 2022
Buffer Overflow para SLmail5.5 32 bits

SLmail5.5-Exploit-BoF Buffer Overflow para SLmail5.5 32 bits con un par de utilidades para que puedas hacer el tuyo REQUISITOS PARA QUE FUNCIONE: Desa

Luis Javier 15 Jul 30, 2022
Gmail Accounts Hacking

gmail-hack Gmail Accounts Hacking Gemail-Hack python script for Hack gmail account brute force What is brute force attack? In brute force attack,scrip

Aryan 25 Nov 10, 2022
zip-brute Zip File Password Cracking with Using Password List

Zip brute is a python script that cracks zip that are password protected using a wordlist dictionary.

AnonyminHack5 13 Nov 03, 2022
Details,PoC and patches for CVE-2021-45383 & CVE-2021-45384

CVE-2021-45383 & CVE-2021-45384 There are several network-layer vulnerabilities in the official server of Minecraft: Bedrock Edition (aka Bedrock Serv

20 Apr 07, 2022
Learning to compose soft prompts for compositional zero-shot learning.

Compositional Soft Prompting (CSP) Compositional soft prompting (CSP), a parameter-efficient learning technique to improve the zero-shot compositional

Bats Research 32 Jan 02, 2023
Generates password lists/dictionaries based on keywords written in python3.

dicbyru Introduction Generates password lists/dictionaries based on keywords. It uses the keywords and adds capital letters, numbers and special chara

ru55o 2 Oct 31, 2022
Burp Suite extension for encoding/decoding EVM calldata

unblocker Burp Suite extension for encoding/decoding EVM calldata 0x00_prerequisites Burp Suite Java 8+ Python 2.7 0x01_installation clone this reposi

Halborn 16 Aug 30, 2022
Lnkbomb - Malicious shortcut generator for collecting NTLM hashes from insecure file shares

Lnkbomb Lnkbomb is used for uploading malicious shortcut files to insecure file

Joe Helle 216 Jan 08, 2023
An advanced multi-threaded, multi-client python reverse shell for hacking linux systems

PwnLnX An advanced multi-threaded, multi-client python reverse shell for hacking linux systems. There's still more work to do so feel free to help out

0xTRAW 212 Dec 24, 2022
Simple script for looping a Denial Of Service (DoS) attack over one single mac address in range

Bluetooth Simple Denial Of Service (DoS) Legal Note This project is made only for educational purposes and for helping in Proofs of Concept. The autho

1 Jan 09, 2022
SPV SecurePasswordVerification

SPV SecurePasswordVerification Its is python module for doing a secure password verification without sharing the password directly. Features The passw

Merwin 1 Feb 12, 2022
Vulmap 是一款 web 漏洞扫描和验证工具, 可对 webapps 进行漏洞扫描, 并且具备漏洞利用功能

Vulmap 是一款 web 漏洞扫描和验证工具, 可对 webapps 进行漏洞扫描, 并且具备漏洞利用功能

之乎者也 2.8k Dec 29, 2022
A simple tool to audit Unix/*BSD/Linux system libraries to find public security vulnerabilities

master_librarian A simple tool to audit Unix/*BSD/Linux system libraries to find public security vulnerabilities. To install requirements: $ sudo pyth

CoolerVoid 167 Dec 19, 2022
D-810 is an IDA Pro plugin which can be used to deobfuscate code at decompilation time by modifying IDA Pro microcode.

Introduction fork from https://gitlab.com/eshard/d810 What is D-810 D-810 is an IDA Pro plugin which can be used to deobfuscate code at decompilation

Banny 30 Dec 06, 2022
CVE-2021-40346 integer overflow enables http smuggling

CVE-2021-40346-POC CVE-2021-40346 integer overflow enables http smuggling Reference: https://jfrog.com/blog/critical-vulnerability-in-haproxy-cve-2021

donky16 34 Nov 15, 2022
Web3 Pancakeswap Sniper & honeypot detector Take Profit/StopLose bot written in python3, For ANDROID WIN MAC & LINUX

🏆 Pancakeswap BSC Sniper Bot web3 with honeypot detector (ANDROID WINDOWS MAC LINUX) 🥇 ⭐️ ⭐️ ⭐️ First SNIPER BOT for ANDROID & WINDOWS with honeypot

Mayank 12 Jan 07, 2023