Skip to content

Instantly share code, notes, and snippets.

View roschacker's full-sized avatar

roschacker

  • Ближнее Подмосковье
View GitHub Profile
@roschacker
roschacker / bluekeep-metasploit-scan.ps1
Created May 28, 2019 09:33
RDP решето CVE-2019-0708 Remote-Desktop-Services Remote-Code-Execution win32k.sys Terminal-Services EternalBlue Really-DO-Patch! Службах_Удаленных_рабочих_столов Служба_Терминалов
c:\metasploit-framework\bin\msfconsole.bat
use auxiliary/scanner/rdp/cve_2019_0708_bluekeep
set RHOSTS 192.168.0.0/24
run
@roschacker
roschacker / bcdedit-Dynamic-Disk-Windows-mirror-softraid.ps1
Created August 7, 2018 10:21
Bootloader Dynamic disk mirroring softRAID Windows Server 2016 diskmgmt.msc vhdx vhd partitioning cloning SSD Recovery
bcdedit /v
wmic diskdrive get serialnumber
wmic csproduct get UUID
bcdedit /set {bootmgr} displaybootmenu yes
@roschacker
roschacker / RDP7.md
Created May 18, 2018 13:44 — forked from vovcacik/RDP7.md
Portable Microsoft RDP 7 Client.

Portable Microsoft RDP 7 Client

  • Get the RDP 7 update for Windows XP from KB969084 (SHA-1 153587172bf060ddc9d2c966f1eaaf4f47926f28).
  • Rename the .\WindowsXP-KB969084-x86-enu.exe to zip.
  • Extract the .\WindowsXP-KB969084-x86-enu.zip\sp3gdr\ directory.

The unpacked RDP 7 client is sort of portable (the binaries are, settings are not) and will run on Windows XP and latter.

#petya #petrWrap #notPetya

Win32/Diskcoder.Petya.C

Ransomware attack.

About

This gist was built by the community of the researchers and was scribed by Kir and Igor from the QIWI/Vulners. We are grateful for the help of all those who sent us the data, links and information. Together we can make this world a better place!

Gist updates

http://www.catalog.update.microsoft.com/Search.aspx?q=KB3125574 Результаты поиска для "KB3125574" Обновления: 1 - 3 из 3 (стр. 1 из1) Название Продукты Классификация Последнее обновление Версия Размер Обновление для Windows 7 (KB3125574) Windows 7 Обновления 16.05.2016 Н/Д 316,0 MB Обновление для Windows Server 2008 R2 x64 Edition (KB3125574) Windows Server 2008 R2 Обновления 16.05.2016 Н/Д 476,9 MB Обновление для Windows 7 для систем на базе процессоров x64 (KB3125574) Windows 7 Обновления 16.05.2016 Н/Д 476,9 MB

Обновление для Windows 7 для систем на базе процессоров x64 (KB3125574)

http://www.catalog.update.microsoft.com/Search.aspx?q=KB976932

Название Продукты Классификация Последнее обновление Версия Размер Обновление для системы безопасности Windows Server 2008 R2 с пакетом обновления 1 (SP1) для 64-разрядных (x64) систем (KB976932) Windows Server 2008 R2 Пакеты обновления 31.05.2011 Н/Д 912,4 MB Обновление для системы безопасности Windows 7 с пакетом обновления 1 (SP1) для 64-разрядных (x64) систем (KB976932) Windows 7 Пакеты обновления 31.05.2011 Н/Д 912,4 MB Пакет обновления 1 (SP1) для Windows 7 (KB976932) Windows 7 Пакеты обновления 31.05.2011 Н/Д 541,9 MB

http://support.microsoft.com/kb/976932

Загрузка обновлений

@roschacker
roschacker / reboot-pc111.ps1.cmd
Last active May 24, 2017 10:26
shutdown-reboot-remote-WinXP-pc.cmd
shutdown /m \\pc111 /r /t 0
@roschacker
roschacker / console-output-Win7-x64-windows6.1-kb4012212-x64.txt
Created May 13, 2017 08:15
Update-Windows-patching-Ransom:Win32.WannaCrypt
C:\Users\amdin
λ dism /online /add-package /packagepath:c:\_warez\_OSWin\Ransom.Win32.WannaCrypt\Win7\windows6.1-kb4012212-x64_d4db8d28cb9497a104aec4ee28091faee6c8bb2c.cab
Cистема DISM
Версия: 6.1.7600.16385
Версия образа: 6.1.7600.16385
@roschacker
roschacker / git-deploy-production-manual.sh
Created April 24, 2017 08:27
manually run deploy with git fetch and checkout at production shell from remote BitBucket origin
cd /var/www/html/example.com/
sudo git fetch --all #Fetching origin
# remote: Counting objects: 6, done.
# remote: Compressing objects: 100% (6/6), done.
# remote: Total 6 (delta 3), reused 0 (delta 0)
# Unpacking objects: 100% (6/6), done.
# From bitbucket.org:username/example.com
# 41caa14..6ffbedd master -> origin/master
sudo git checkout --force origin/master
# Previous HEAD position was 41caa14... default.css added img path changed added bg.jpg
@roschacker
roschacker / install-nginx-stable.deb-ansible.yml.sh
Last active April 19, 2017 15:13
install stable nginx on debian or ubuntu
sudo ansible all -i 'localhost,' -c local -m apt_repository -a "repo=ppa:nginx/stable"
sudo ansible all -i 'localhost,' -c local -m apt -a "pkg=nginx state=present"