Monday, April 17, 2023

Purging a Phish on all mailboxes Exchange Online (Microsoft 365)

 ﷽

 

Imagine you’re the IT administrator for a mid-sized company. It’s a busy Monday morning and your "Urgent" inbox starts blowing up. 

The Scenario: The "Phish" bait.

A sophisticated phishing email has bypassed your initial security filters. It looks exactly like a legitimate HR memo about "Updated 2023 Benefits" but it contains a malicious link designed to steal employee credentials. By the time you’ve been alerted, the email has already landed in the inboxes of 1000 employees. 

The Fix: Taking Decisive Action


You can’t manually log into 1000 mailboxes to delete the messages. Instead, you use the New-ComplianceSearchAction command to automate the cleanup. Here is the breakdown :

1. Login using Powershell :

Connect-IPPSSession -UserPrincipalName admin@yourdomain -EnableSearchOnlySession

2. Create Compliance Search with spesific Subject :

New-ComplianceSearch -Name "Delete-Updated 2023 Benefits" -ExchangeLocation All -ContentMatchQuery 'subject:"Updated 2023 Benefits"'

'subject:"Updated 2023 Benefits"' : This tells the system exactly which "pile" of email subject you are targeting—specifically

3. Run the Search :

Start-ComplianceSearch -Identity "Delete-Updated 2023 Benefits" 

4. Check the Search Progress :

Get-ComplianceSearch -Identity "Delete-Updated 2023 Benefits" 


Name                 RunBy                JobEndTime           Status
----                 -----                ----------           ------
Delete-Updated 2023 Benefits Rizky Marunda Dinata 4/17/2023 8:08:37 AM Completed 

5. Delete E-Mail from all mailboxes :

New-ComplianceSearchAction -SearchName "Delete-Updated 2023 Benefits" -Purge -PurgeType HardDelete

-Purge: This is the "active" part of the command. Without this, the search is just a list. This flag tells the system to actually go in and remove the items.
-PurgeType :
A SoftDelete would just move the emails to the "Deleted Items" or "Deletions" folder where a user might still find them.
A HardDelete strips the email from the mailbox entirely. It’s no longer visible or accessible to the user, effectively neutralizing the threat before a single click can happen.

The Outcome

Within minutes of running that command, the phishing threat is purged. Even if an employee saw the notification on their mobilephone, by the time they open their Outlook, the "Updated 2023 Benefits" email has vanished. Alhamdulillah you've successfully prevented a potential data breach with one line of code.

Barakallahu fiikum

Wa Jazakumullahu khair.
 
 

Friday, March 24, 2023

Crack Passsword Protected PDF File.

  

My friend just ask me how to crack her own PDF payslip file, the PDF file is protected with 4 digits numerical password, so here is the manual using the famous John The Ripper bruteforce method :

1. Locate John library.

$ locate john
...
/usr/share/john/1password2john.py
/usr/share/john/7z2john.pl
/usr/share/john/DPAPImk2john.py
/usr/share/john/__pycache__
...
$ cd /usr/share/john

2. Convert PDF file to John hash file.    

$ /usr/share/john/pdf2john.pl 23000271.PDF > 23000271.hash

3. Start bruteforcing the 4 digit numerical password.

$ john --mask=?1?1?1?1 -1=[0-9] 23000271.hash
Using default input encoding: UTF-8
Loaded 1 password hash (PDF [MD5 SHA2 RC4/AES 32/64])
Cost 1 (revision) is 3 for all loaded hashes
Will run 8 OpenMP threads
Press 'q' or Ctrl-C to abort, almost any other key for status
9111             (/home/spikecursed/23000271.PDF)
1g 0:00:00:00 DONE (2023-03-24 11:15) 50.00g/s 140800p/s 140800c/s 140800C/s 0652..5182
Use the "--show --format=PDF" options to display all of the cracked passwords reliably
Session completed.

4. It's only take a blink of second to crack, what lesson we learn ? always use strong password combination, thats all.

Baarakallahu fiikum.

Tuesday, February 14, 2023

Fix WSL unable connect to internet.

  

The goal of this short article is to fix Linux system internet issue which run under WSL (Windows Subsystem for Linux), the ussual symptomp is :

1. Linux system are able reach external IP network by ICMP.

2. Linux system are unable to resolve domain, for example we can check using nslookup or ping to destination domain.

To fix this issue there are simply two step to do :

1. Create wsl.conf file under /etc to ensure system doesn't regenerate /etc/resolv.conf, to do this  : vi /etc/wsl.conf

[network]
generateResolvConf = false

2. Recreate /etc/resolv.conf : echo 'nameserver 1.1.1.1' > /etc/resolv.conf

Then simply test the connectivity using nslookup or ping to destination domain.

Thank you for reading,

Barakallahu fiikum.

Sunday, January 8, 2023

Google Dork List

 intitle:"index of" "/usernames"
intext:"-----BEGIN CERTIFICATE-----" ext:txt
intitle:"index of" "contacts.txt"
intitle:"index of" "db.properties" | "db.properties.BAK"
intitle:"index of" "credentials.xml" | "credentials.inc" | "credentials.txt"
jdbc:sqlserver://localhost:1433 + username + password ext:yml | ext:java
intitle:"index of" "password.yml
"'dsn: mysql:host=localhost;dbname=" ext:yml | ext:txt "password:"
intitle:"index of" "sitemanager.xml" | "recentservers.xml"
intitle:"index of" "filezilla.xml"
"DefaultPassword" ext:reg "[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogon]"
inurl:user intitle:index of ext:sql | xls | xml | json | csv
filetype:csv intext:"Secret access key"
jdbc:mysql://localhost:3306/ + username + password ext:yml | ext:java -git -gitlab
intitle:"index of" "/parameters.yml*"
"CREATE ROLE" + "ENCRYPTED PASSWORD" ext:sql | ext:txt | ext:ini -git -gitlab
File contains Sensitive Information
"index of" "users.frm"
intitle:"index of" "tomcat-users.xml"
intitle:"index of" "/ftpusers"
intitle:"index of" "users.sql"
allintext:username filetype:log
intitle:"index of" service.grp
intitle:index.of "users.db"
"username.xlsx" ext:xlsx
inurl:/_layouts/mobile/view.aspx?List=
"authentication failure; logname=" ext:log
inurl:/profile.php?lookup=1
intext:"root:x:0:0:root:/root:/bin/bash" inurl:*=/etc/passwd
inurl:"/root/etc/passwd" intext:"home/*:"
site:extremetracking.com inurl:"login="
intext:"SteamUserPassphrase=" intext:"SteamAppUser=" -"username" -"user"
inurl:root.asp?acs=anon
filetype:conf inurl:proftpd.conf -sample
filetype:log username putty
filetype:reg reg +intext:"internet account manager"
filetype:reg reg HKEY_CURRENT_USER username
+intext:"webalizer" +intext:"Total Usernames" +intext:"Usage Statistics for"
inurl:php inurl:hlstats intext:"Server Username"
index.of perform.ini
"index of" / lck
inurl:admin inurl:userlist
inurl:admin filetype:asp inurl:userlist
intitle:index.of .bash_history
intitle:index.of .sh_history
intitle:"Index of" htpasswd
intitle:"Index of" pwd.db
site:rentry.co intext:"password"
site:pastebin.com "admin password"
site:controlc.com intext:"password"
site:pastebin.com "password"
site:pastebin.com intext:pass.txt
intext:"Index of" intext:"password.zip"
intext:"index of" "uploads"
intext:"password" | "passwd" | "pwd" site:ghostbin.com
site:pastebin.com intext:password.txt
intext:"/pfx-password.txt" "[To Parent Directory]"
site:pastebin.com intext:username | password | SECRET_KEY
inurl:/wp-content/uploads/ ext:txt "username" | "user name" | "uname" | "user" | "userid" | "user id" AND "password" | "pass word" | "pwd" | "pw"
inurl:password site:shodan.io
intitle:"index of" "passwrod*"
intitle:"index of" "credentials"
allintext:password filetype:log after:2018
"index of /" +passwd
intitle: "Index of ftp passwords"
Inurl: "login" Intitle:index of username and pass
inurl:wp-config.php.save
"enable secret 5" ext:txt | ext:cfg
filetype:log username admin
site:pastebin.com intitle:"password" 2021
inurl:/wp-content/uploads/data.txt
allintext:"*.@gmail.com" OR "password" OR "username" filetype:xlsx
inurl:/wp-content/uploads/ ext:txt "username" AND "password" | "pwd" | "pw"
"# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd
site:*.blob.core.windows.net ext:xls | ext:xlsx (login | password | username)
"public $user =" | "public $password = " | "public $secret =" | "public $db =" ext:txt | ext:log -git
intitle:"index of" "application-users.properties" | "mgmt-users.properties" | "*standalone.xml"
"cpanel username" "cpanel password" ext:txt
"insert into users" "VALUES" ext:sql | ext:txt | ext:log | ext:env
"password 7" ext:txt | ext:log | ext:cfg
intitle:"index of" "idx_config"
"mailer_password:" + "mailer_host:" + "mailer_user:" + "secret:" ext:yml
intext:construct('mysql:host
"define('SECURE_AUTH_KEY'" + "define('LOGGED_IN_KEY'" + "define('NONCE_KEY'" ext:txt | ext:cfg | ext:env | ext:ini
"keystorePass=" ext:xml | ext:txt -git -gitlab
"define('DB_USER'," + "define('DB_PASSWORD'," ext:txt
intitle:"index of" "anaconda-ks.cfg" | "anaconda-ks-new.cfg"
intitle:"index of" "config.exs" | "dev.exs" | "test.exs" | "prod.secret.exs"
jdbc:oracle://localhost: + username + password ext:yml | ext:java -git -gitlab
jdbc:postgresql://localhost: + username + password ext:yml | ext:java -git -gitlab
jdbc:mysql://localhost:3306/ + username + password ext:yml | ext:javascript -git -gitlab
"spring.datasource.password=" + "spring.datasource.username=" ext:properties -git -gitlab
ext:log password END_FILE
site:pastebin.com intext:admin.password
"db.username" + "db.password" ext:properties
ext:cfg "g_password" | "sv_privatepassword" | "rcon_password" -git -gitlab
"server.cfg" ext:cfg intext:"rcon_password" -git -gitlab
"anaconda-ks.cfg" | "ks.cfg" ext:cfg -git -gitlab
rootpw --iscrypted ext:cfg
"admin_password" ext:txt | ext:log | ext:cfg
"index of" "password.ini"
filetype:log intext:password after:2015 intext:@gmail.com | @yahoo.com | @hotmail.com
"'username' =>" + "'password' =>" ext:log
ext:txt intext:@yahoo.com intext:password
intitle:"database.php" inurl:"database.php" intext:"db_password" -git -gitlab
ext:xls intext:@gmail.com intext:password
"POSTGRES_PASSWORD=" ext:txt | ext:cfg | ext:env | ext:ini | ext:yml | ext:sql -git -gitlab
"/** MySQL database password */" ext:txt | ext:cfg | ext:env | ext:ini
"EMAIL_HOST_PASSWORD" ext:yml | ext:env | ext:txt | ext:log
allintext:"redis_password" ext:env
intext:"db_database" ext:env intext:"db_password"
"Index of" "/yahoo_site_admin/credentials"
intitle:"index of" "/master.passwd"
allintext:password filetype:log
inurl:logs intext:GET https:// ext:txt intext:password intext:username
"MYSQL_ROOT_PASSWORD:" ext:env OR ext:yml -git
filetype:env "DB_PASSWORD"
"config.php.bak" intitle:"index of"
intext:"Index of /password"
"index of" ".env"
intitle:"index of" "config.neon" OR "config.local.neon"
intitle:"index of" "passwords.xlsx"
inurl:*helpdesk* intext:"your default password is"
"MasterUserPassword" ext:cfg OR ext:log OR ext:txt -git
"/etc/shadow root:$" ext:cfg OR ext:log OR ext:txt OR ext:sql -git
intitle:"index of " "*.passwords.txt"
intitle:"index of" "db.ini"
"super password level 3 cipher" ext:txt OR ext:log
"admin password irreversible-cipher" ext:txt OR ext:log OR ext:cfg
intitle:"index of" application.ini
intitle:"index of" "database.ini" OR "database.ini.old"
intitle:"index of" "db.connection.js"
"create account" admin ext:cfg
"d-i passwd/root-password-crypted password" ext:cfg
"configure account user encrypted" ext:cfg
intitle:"Index of" dbconnect.inc
intext:authentication set encrypted-password ext:cfg
"enable password" ext:cfg -git -cisco.com
password console-password ext:cfg -git
intitle:"index of" "credentials.yml"
intitle:"index of" "passwords.yml"
intext:"WPENGINE_SESSION_DB_USERNAME" || "WPENGINE_SESSION_DB_PASSWORD"
intext:"username=" AND "password=" ext:log
intitle:index.of "creds.txt"
intitle:"index of" share.passwd OR cloud.passwd OR ftp.passwd -public
intitle:"index of" "db.conf"
intitle:"Index of" password.txt
"contrasena" filetype:sql -github.com
intext:"@gmail.com" intext:"password" inurl:/files/ ext:txt
intitle:"index of" "ftp.passwd"
intitle:"index of" "htpasswd.txt"
"pass" "usuario" filetype:sql
intext:"aspx" filetype:txt login & password
inurl:users.json + "username"
intext:"wordpress" filetype:xls login & password
s3 site:amazonaws.com filetype:xls password
inurl:login.txt filetype:txt
intitle:settings.py intext:EMAIL_USE_TLS -git -stackoverflow
inurl:wp-config.php intext:DB_PASSWORD -stackoverflow -wpbeginner
intitle:settings.py intext:EMAIL_HOST_PASSWORD -git -stackoverflow
username | password inurl:resources/application.properties -github.com -gitlab
filetype:xml config.xml passwordHash Jenkins
intext:jdbc:oracle filetype:java
filetype:txt $9$ JunOS
filetype:reg reg HKEY_CURRENT_USER intext:password
inurl:"standalone.xml" intext:"password>"
/_wpeprivate/config.json
inurl:"build.xml" intext:"tomcat.manager.password"
intitle:"index of" intext:login.csv
inurl:"trello.com" and intext:"username" and intext:"password"
inurl:"wp-license.php?file=../..//wp-config"
"battlefield" "email" site:pastebin.com
inurl:wp-config.bak
intext:"rabbit_password" | "service_password" filetype:conf
"whoops! there was an error." "db_password"
intext:"login" department | admin | manager | company | host filetype:xls | xlsx -community -github
intext:"please change your" password |code | login file:pdf | doc | txt | docx -github
inurl:configuration.php and intext:"var $password="
inurl:/dbcp.properties + filetype:properties -github.com
intext:define('AUTH_KEY', ' wp-config.php filetype:txt
inurl:wp-config-backup.txt
"password.xlsx" ext:xlsx
filetype:env intext:REDIS_PASSWORD
site:showmyhomework.co.uk/school/homeworks/ "password"
intitle:"index.of" inurl:"cvs" login | passwd | password | access | pass -github -pub
filetype:doc inurl:"gov" intext:"default password is"
site:trello.com intext:mysql AND intext:password -site:developers.trello.com -site:help.trello.com
intext:"PuTTY log" ext:log "password" -supportforums -github
inurl:"/App.Config" + ext:config + "password=" -github -git
intitle:"Index of" intext:"Login Data"
inurl:"servlet/ViewFormServlet?" "pwd"
Codeigniter filetype:sql intext:password | pwd intext:username | uname intext: Insert into users values
intitle:"index.of" "places.sqlite" "key3.db" -mozilla.org
intitle:"index.of" "places.sqlite" "Mail" thunderbird -mozilla.org -scan
filetype:config "" "password" "web.config" -stackoverflow -youtube.com -github
ext:ini Robust.ini filetype:ini "password"
inurl:"config.xml" "password" ext:xml -stackoverflow.com -github.com
inurl:"databases.yml" ext:yml password -github
inurl:/host.txt + filetype:txt + "password"
intitle:"Index Of" intext:".vscode"
intitle:"index of /" inanchor:.kdbx
site:pastebin.com "rcon_password"
CakePHP inurl:database.php intext:db_password
intext:password inurl:"/log/production" ext:log
"database_password" filetype:yml "config/parameters.yml
"MAIL_PASSWORD" filetype:env
"database_password" filetype:yml "config/parameters.yml"
intitle:"Index Of" intext:sftp-config.json
ext:config + " password=" + "
"password" + ext:conf "Modem Type = USB Modem"
ext:inf SetupMgrTag AdminPassword
"enable secret" ext:cfg -git -cisco.com
inurl:"gradle.properties" intext:"proxyPassword"
site:trello.com password
intext:connectionString & inurl:web & ext:config
intitle:"Index Of" intext:.ftpconfig
inurl:_vti_pvt/administrators.pwd
inurl:"sitemanager.xml" ext:xml -git
intext:DB_PASSWORD || intext:"MySQL hostname" ext:txt
site:pastebin.com intext:"*@*.com:*"
"resources.db.params.password" ext:ini -git
"iSpy Keylogger" "Passwords Log" ext:txt
"mysqli_connect" ext:inc
ext:reg " [HKEY_CURRENT_USER\Software\ORL\WinVNC3]" -git
" End Stealer " ext:txt
"FileZilla" inurl:"recentservers.xml" -git
"Stealer by W33DY" ext:txt
inurl:"/zebra.conf" ext:conf -git
ext:fetchmailrc
"[main]" "enc_GroupPwd=" ext:txt
"-----BEGIN RSA PRIVATE KEY-----" ext:key
filetype:bak inurl:php "mysql_connect"
"# -FrontPage-" ext:pwd
"INSERT INTO phpbb_users" ext:sql
"END_FILE" inurl:"/password.log"
"Index of" "logins.json" "key3.db"
inurl:"-wp13.txt"
"your default password is" filetype:pdf
site:cloudshark.org/captures# password
intitle:"index of/" CCCam.cfg
inurl:github.com intitle:config intext:"/msg nickserv identify"
inurl:proftpdpasswd
inurl:"/wp-content/wpclone-temp/wpclone_backup/"
site:static.ow.ly/docs/ intext:@gmail.com | Password
site:github.com ext:csv userid | username | user -example password
intext:"eav" filetype:txt
filetype:pcf "cisco" "GroupPwd"
site:pastebin.com intext:@gmail.com | @yahoo.com | @hotmail.com daterange:2457388-2457491
intext:"END_FILE" ext:log
inurl:wp-config -intext:wp-config "'DB_PASSWORD'"
"Password=" inurl:web.config -intext:web.config ext:config
inurl:wp-content/uploads filetype:xls | filetype:xlsx password
intext:"GET http://" ext:txt intext:"password" inurl:log
intext:http | https intext:login | logon intext:password | passcode filetype:xls | filetype:xlsx
ext:sql intext:username intext:password
inurl:"ftp" intext:"user" | "username" | "userID" | "user ID" | "logon" | "login" intext:"password" | "passcode" filetype:xls | filetype:xlsx
intext:smtp | pop3 intext:login | logon intext:password | passcode filetype:xls | filetype:xlsx
ext:xls intext:NAME intext:TEL intext:EMAIL intext:PASSWORD
inurl:etc -intext:etc ext:passwd
filetype:log intext:password | pass | pw
intext:@pwcache "parent directory"
site:pastebin.com intext:Username
intext:DB_PASSWORD ext:env
ext:csv intext:"password"
ext:sql intext:"alter user" intext:"identified by"
inurl:"security/xamppdirpasswd.txt"
inurl:yahoo_site_admin/credentials/
"automatic teller" "operator manual" "password" filetype:pdf
inurl:ws_ftp.ini "[WS_FTP]" filetype:ini
xamppdirpasswd.txt filetype:txt
inurl:typo3conf/localconf.php
inurl:/backup intitle:index of backup intext:*sql
filetype:password jmxremote
site:github.com inurl:sftp-config.json intext:/wp-content/
ext:sql intext:@gmail.com intext:password
site:github.com inurl:sftp-config.json
"BEGIN RSA PRIVATE KEY" filetype:key -github
filetype:sql insite:pass && user
ext:sql intext:@hotmail.com intext :password
filetype:config inurl:web.config inurl:ftp
filetype:inc OR filetype:bak OR filetype:old mysql_connect OR mysql_pconnect
ext:xml ("proto='prpl-'" | "prpl-yahoo" | "prpl-silc" | "prpl-icq")
allinurl:"User_info/auth_user_file.txt"
inurl:"/dbman/default.pass"
"parent directory" proftpdpasswd intitle:"index of" -google

Monday, July 11, 2022

Convert .OVA to .QCOW2

  ﷽

 We need to convert virtualization file from .OVA format to .QCOW2 to import it onto Harvester HCI images.

# apt-get update
Hit:2 https://ngrok-agent.s3.amazonaws.com buster InRelease
...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
252 packages can be upgraded. Run 'apt list --upgradable' to see them.

# apt-get install qemu-utils
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
...
Setting up qemu-block-extra (1:8.0.2+dfsg-2) ...
Processing triggers for libc-bin (2.36-9) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for kali-menu (2023.3.1) ...


# tar -xvf MY_OVA.ova
MY_OVA.ovf
MY_OVA-disk001.vmdk
MY_OVA-disk002.vmdk
MY_OVA.mf

# qemu-img convert -f vmdk -O qcow2 MY_OVA-disk001.vmdk MY_OVA.qcow2

Alhamdulillah, it's done.

Barakallahu fiikum.

Menghadapi Krisis Dengan Panduan Syariat

﷽ πŸ“— Menghadapi Krisis Dengan Panduan Syariat πŸ‘€ Ustadz Doktor Firanda Andirja حفظه Ψ§Ω„Ω„Ω‡ πŸ“… 18 Juli 2026, 09.00 WIB.  Tabiat dalam kehidupan...