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: security in practice
Can anyone tell me why this is not working?

I am just getting started into kali. Was following a tutorial for scanning ports. This code is supposed to show open ports, but it doesn't shows any ports open.
#!/bin/python import sys import socket from datetime import datetime #Define our target if len(sys.argv) == 2: #sys.argv is same as $1 in bash ie. taking the first argument target = socket.gethostbyname(sys.argv[1]) #translating hostname to ipv4 else: print('Invalid amount of argument') print('Syntax: python3 scanner.py
submitted by /u/muzillafirefox
[link] [comments]

___________________________
@hacking_Attack
@Hacking_Video
Log4j CVE-2021-44228
https://www.reddit.com/r/redteamsec/comments/tm2ted/log4j_cve202144228/

Hi all! I'm making an assignment for my university which consists in executing a pentest on a docker. By scanning with nessus I found a Log4j vulnerability and I'm trying to get the PoC of it. I searched on the web but I didn't find any interesting info about how to do that. Anyone has got some ideas? According to nessus, it seems to be related to LDAP service. (vulnerability got found on tcp port 80) https://preview.redd.it/m4vk6psk6bp81.png?width=1345&format=png&auto=webp&s=6d0e5541c4aa627f4c610943d185342a7c269909 submitted by /u/_1NiCk1_ (https://www.reddit.com/user/_1NiCk1_)
[link] (https://www.reddit.com/r/redteamsec/comments/tm2ted/log4j_cve202144228/) [comments] (https://www.reddit.com/r/redteamsec/comments/tm2ted/log4j_cve202144228/)

___________________________
@hacking_Attack
@Hacking_Video
Instagram and Facebook Account Takeover if another user account is logged into your system/mobile

Hi, I'm Praveen Kumar, let's start with how we can take complete takeover and access to other Facebook and Instagram accounts if it's…Continue reading on Medium »
Read more...
Hacking Articles Tips Tricks Videos Tutorials
Photo
Black Hat Ethical Hacking
DeadBolt Ransomware Resurfaces to Hit QNAP Again

DeadBolt Ransomware Resurfaces to Hit QNAP AgainPost Views: 38
https://www.blackhatethicalhacking.com/wp-content/uploads/2022/02/Patreon.png
Reading Time: 2 Minutes
DeadBolt ransomware has resurfaced in a new wave of attacks on QNAP that begin in mid-March and signals a new targeting of the Taiwan-based network-attached storage (NAS) devices by the fledgling threat, researchers said.
Researchers from Censys, which provides attack-surface management solutions, said they observed DeadBolt infections on QNAP gear ramp up slowly starting March 16, with a total of 373 infections that day. That number that rose to 1,146 devices by March 19, according to a blog post by Censys senior security researcher Mark Ellzey.

The current attacks harken back to January, when the company had to push out an unplanned update to its NAS devices, one that not all customers welcomed. The update was meant to clean up after DeadBolt attacks that were greeting customers with the ransomware group’s screen when they logged in, effectively locking them out of the device.

The new wave of attacks ostensibly follow the same pattern as January’s wave, but the majority of the victims are running the QNAP QTS Linux kernel version 5.10.60, Ellzey said. That’s a later version than the update (QTS 5.0.0.1891) pushed out to customers in January.

That said, “at this time, Censys cannot state whether this is a new attack targeting different versions of the QTS operating system, or if it’s the original exploit targeting unpatched QNAP devices,” he acknowledged.

Moreover, the new infections do not seem to be targeting a specific organization or country; they seem to be evenly split between subscribers of various consumer internet service providers, Ellzey added.
See Also: Complete Offensive Security and Ethical Hacking Course
https://www.blackhatethicalhacking.com/wp-content/uploads/2022/03/Solutions-1.png Déjà Vu for QNAP CustomersThe attacks behave the same as the January attacks as far as what the customers experience — and they ask for the same ransom as previous DeadBolt attacks on QNAP devices, Ellzey said.

“Except for the [Bitcoin] addresses used to send ransoms to, the attack remains the same: backup files are encrypted, the web administration interface is modified, and victims are greeted with [ransom] messages,” he wrote in the post.

The attackers are asking for 0.03 Bitcoin for a decryption key, which is about $1,223 at today’s exchange rate. They’re also asking for a ransom from QNAP itself: 5 bitcoin or $203,988, for information related to the vulnerabilities; and 50 bitcoin, or about $2 million, for a master key to unlock all affected victims, Ellzey said.

QNAP is not the only company in the crosshairs of DeadBolt, which first came to researchers’ attention due to the January attacks. In mid-February, Reddit users began reporting that the ransomware was targeting ASUSTOR ADM devices, according to Censys.
See Also: Kali Linux 2022.1 Release with Visual Updates, New Tools, Legacy SSH Attack DetectionCensys researchers picked up on the latest wave of QNAP attacks due to the unique way the current DeadBolt ransomware variant communicates with victims, according to the post.

“Instead of encrypting the entire device, which effectively takes the device offline (and out of the purview of Censys), the ransomware only targets specific backup directories for encryption, and vandalizes the web-administration interface with an informational message explaining how to remove the infection,” Ellzey wrote.

Therefore, using a simple search query, Censys “could easily find infected devices exposed on the public inte[...]

___________________________
@hacking_Attack
@Hacking_Video
Hacking Articles Tips Tricks Videos Tutorials
Photo
Black Hat Ethical Hacking
Recon Tool: SwaggerHole

Recon Tool: SwaggerHolePost Views: 11 https://www.blackhatethicalhacking.com/wp-content/uploads/2022/02/Patreon.png Reading Time: 2 Minutes

Recon Tool: SwaggerHole GitHub Link IntroductionSwaggerHole by Liodeus, based on whispers tool is written to automate the process of retrieving secrets in the public APIs on swaggerHub. This tool is multithreaded and pipe mode is available which can be used in various flexible ways due to this, in order to detect and prevent sensitive information that can be found such as discovering API Keys, hardcoded credentials secrets like passwords, tokens within the code itself. Requirements* python3 (sudo apt install python3)
* pip3 (sudo apt install python3-pip)
See Also: Complete Offensive Security and Ethical Hacking Course Installationpip3 install swaggerhole
or cloning this repository and running
git clone https://github.com/Liodeus/swaggerHole.git
pip3 install . Usage/ ___/| | /| / // __ `// __ `// __ `// _ \ / ___/ (__ ) | |/ |/ // /_/ // /_/ // /_/ // __// / /____/ |__/|__/ \__,_/ \__, / \__, / \___//_/ __ __ __ /____/ /____/ / / / /____ / /___ / /_/ // __ \ / // _ \ / __ // /_/ // // __/ /_/ /_/ \____//_/ \___/ usage: swaggerhole [-h] [-s SEARCH] [-o OUT] [-t THREADS] [-j] [-q] [-du] [-de] optional arguments: -h, --help show this help message and exit -s SEARCH, --search SEARCH Term to search -o OUT, --out OUT Output directory -t THREADS, --threads THREADS Threads number (Default 25) -j, --json Json ouput -q, --quiet Remove banner -du, --deactivate_url Deactivate the URL filtering -de, --deactivate_email Deactivate the email filtering
See Also: Recon Tool: Uncover Search for secret about a domainswaggerHole -s test.com echo test.com | swaggerHole Search for secret about a domain and output to jsonswaggerHole -s test.com --json echo test.com | swaggerHole --json Search for secret about a domain and do it fastswaggerHole -s test.com -t 100 echo test.com | swaggerHole -t 100 Output explanationNormal outputFinding_Type – Finding – [Swagger_Name][Date_Last_Update][Line:Number] Json output{“Finding_Type”: Finding, “File”: File_path, “Date”: Date_Last_Update, “Line”: Number} Deactivate url/emailUsing -du or -de remove the filtering done by the tool. There is more false positive with those options.
See Also: Hacking stories: MafiaBoy, the hacker who took down the Internet https://www.blackhatethicalhacking.com/wp-content/uploads/2022/03/Merch.png Recent Tools* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/03/uncover-90x90.png Recon Tool: Uncover6 days ago
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/03/Fibratus_-90x90.png Offensive Security Tool: Fibratus2 weeks ago
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/03/animation-scapy-themes-demo-90x90.gif Offensive Security Tool: Scapy3 weeks ago
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/02/Red-Teaming-Tactics-and-Techniques-90x90.png Offensive Security Tools Collection: Red Teaming Tactics and Techniques4 weeks ago
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/02/metagoofil-90x90.png Recon Tool: Metagoofil4 weeks ago
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/02/swaks-1-90x90.png Offensive Security Tool: Swaks – Swiss Army Knife for SMTP1 month ago
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/02/Odin-90x90.png OSINT & Recon Tool: Odin1 month ago
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/02/pre-90x90.png Offensive Security Tool: Sandbox Defender1 month ago
* https://www.blackhatethic[...]

___________________________
@hacking_Attack
@Hacking_Video
Hacking Articles Tips Tricks Videos Tutorials
Black Hat Ethical Hacking DeadBolt Ransomware Resurfaces to Hit QNAP Again DeadBolt Ransomware Resurfaces to Hit QNAP AgainPost Views: 38 https://www.blackhatethicalhacking.com/wp-content/uploads/2022/02/Patreon.png Reading Time: 2 Minutes DeadBolt ransomware…
rnet,” according to the post.

Along with general information about what hosts were infected with DeadBolt, researchers also obtained and tracked every unique Bitcoin wallet address used as a ransom drop, Ellzey added. See Also: Offensive Security Tool: Scapy Are u a security researcher? Or a company that writes articles or write ups about Cyber Security, Offensive Security (related to information security in general) that match with our specific audience and is worth sharing?

If you want to express your idea in an article contact us here for a quote: info@blackhatethicalhacking.com
See Also: Hacking stories: MafiaBoy, the hacker who took down the Internet
Source: threatpost.com Source Linkhttps://www.blackhatethicalhacking.com/wp-content/uploads/2022/03/Merch-1024x1024.png Recent News* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/03/hackers-90x90.jpg Lapsus$ Data Kidnappers Claim Snatches From Microsoft, Okta1 day ago
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/03/Invisible-man-scaled-e1647906959971-90x90.jpg Browser-in-the-Browser Attack Makes Phishing Nearly Invisible2 days ago
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/03/pdf-export-90x90.png Workaround offered for unpatched HTML-to-PDF rendering vulnerability3 days ago
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/03/ezgif.com-gif-maker-2-scaled-90x90.jpg Caketap, a New Unix rootkit for stealing ATM banking data6 days ago
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/03/AdobeStock_390895150_Editorial_Use_Only-1-1-min-scaled-1-90x90.jpeg Hundreds of GoDaddy-hosted sites backdoored in a single day1 week ago
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/03/79ohvicqaKcVP9KT2mDdTH-90x90.jpg Most QNAP NAS Devices Affected by ‘Dirty Pipe’ Linux Flaw1 week ago
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/03/Lapsus-group-has-hacked-Ubisoft-as-well-90x90.jpg Ubisoft has confirmed it was hacked by Lapsus$ group1 week ago
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/03/raccoon-stealer-90x90.jpg Raccoon Stealer Crawls Into Telegram1 week ago
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/03/kali-bright-90x90.jpg Kali Unkaputtbar – a new feature on Kali Linux2 weeks ago
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/03/wolf-in-sheps-clothing-2-scaled-e1646927438585-90x90.jpeg Malware Posing as Russia DDoS Tool Bites Ukraine Hackers2 weeks ago
The post DeadBolt Ransomware Resurfaces to Hit QNAP Again first appeared on Black Hat Ethical Hacking.

___________________________
@hacking_Attack
@Hacking_Video
Hacking Articles Tips Tricks Videos Tutorials
Photo
Kali Linux Tutorials
truffleHog : Searches Through Git Repositories For High Entropy Strings And Secrets

truffleHog previously functioned by running entropy checks on git diffs. This functionality still exists, but high signal regex checks have been added, and the ability to suppress entropy checking has also been added.

trufflehog –regex –entropy=False https://github.com/dxa4481/truffleHog.git

or

trufflehog file:///user/dxa4481/codeprojects/truffleHog/

With the --include_pathsand --exclude_pathsoptions, it is also possible to limit scanning to a subset of objects in the Git history by defining regular expressions (one per line) in a file to match the targeted object paths. To illustrate, see the example include and exclude files below:

include-patterns.txt:

src/
lines beginning with “#” are treated as comments and are ignored
gradle/
regexes must match the entire path, but can use python’s regex syntax for
case-insensitive matching and other advanced options
(?i)..(properties|conf|ini|txt|y(a)?ml)$ (./)?id_[rd]sa$

exclude-patterns.txt:

(./)?.classpath$ ..jmx$
(./)?test/(./)?resources/

These filter files could then be applied by:

trufflehog –include_paths include-patterns.txt –exclude_paths exclude-patterns.txt file://path/to/my/repo.git

With these filters, issues found in files in the root-level srcdirectory would be reported, unless they had the .classpathor .jmxextension, or if they were found in the src/test/dev/resources/directory, for example. Additional usage information is provided when calling trufflehogwith the -hor --helpoptions.

These features help cut down on noise, and makes the tool easier to shove into a devops pipeline.
https://blogger.googleusercontent.com/img/a/AVvXsEieJEoWU-DRJkFxYSeMYZjbyHibjQdQ4iB-O8IyDTJiXREgO7lvzIPs0rWDJqJgp5ogZErRufthpYGYevYrUKV2tWql947CREr6sIENT-_7jdDnBVAx5dyJAS_4n1MbY1FIzyZ5sEPD8uGok7eTgF-czbUxcHuy-I0f4ibITQAjdi2Bfx-9WPOEUC8E=s1708
Install

pip install truffleHog CustomizingCustom regexes can be added with the following flag --rules /path/to/rules. This should be a json file of the following format:

{
“RSA private key”: “—–BEGIN EC PRIVATE KEY—–“
}

Things like subdomain enumeration, s3 bucket detection, and other useful regexes highly custom to the situation can be added.

Feel free to also contribute high signal regexes upstream that you think will benefit the community. Things like Azure keys, Twilio keys, Google Compute keys, are welcome, provided a high signal regex can be constructed.

trufflehog’s base rule set sources from https://github.com/dxa4481/truffleHogRegexes/blob/master/truffleHogRegexes/regexes.json

To explicitly allow particular secrets (e.g. self-signed keys used only for local testing) you can provide an allow list --allow /path/to/allowin the following format:

{
“local self signed test key”: “—–BEGIN EC PRIVATE KEY—–\nfoobar123\n—–END EC PRIVATE KEY—–“,
“git cherry pick SHAs”: “regex:Cherry picked from .*”,
}

Note that values beginning with regex:will be used as regular expressions. Values without this will be literal, with some automatic conversions (e.g. flexible newlines). How it worksThis module will go through the entire commit history of each branch, and check each diff from each commit, and check for secrets. This is both by regex and by entropy. For entropy checks, truffleHog will evaluate the shannon entropy for both the base64 char set and hexidecimal char set for every blob of text greater than 20 characters comprised of those character sets in each diff. If at any point a high entropy string >20 characters is detected, it will print to the screen. Running with DockerFirst, enter the directory containing the git repository

cd /pa[...]

___________________________
@hacking_Attack
@Hacking_Video