![]() |
VOOZH | about |
Linux,Windows,serwer, i tak dalej ;)
There was a lot of nice summary articles about latest „ransomware” attack caused by Petya. Soon, researchers started to claim almost permanent vaccine for this type of worm.
Even patched OS won’t save you from infection as one infected machine quickly spreads the infection using other protocols like WinRM.
So, how should one on its vast server farm vaccinate hundrets of machines?
For example, like this 🙂
win_manage: dsc_file: petya_vaccine1: dsc_destinationpath: C:\Windows\perfc dsc_type: file dsc_attributes: readonly dsc_contents: "" petya_vaccine2: dsc_destinationpath: C:\Windows\perfc.dat dsc_type: file dsc_attributes: readonly dsc_contents: "" petya_vaccine3: dsc_destinationpath: C:\Windows\perfc.dll dsc_type: file dsc_attributes: readonly dsc_contents: ""
Written by marcinbojko
1 lipca, 2017 at 11:14
Napisane w work
Tagged with chocolatey, foreman, opensource, puppet, ransomware, virus, windows
Yes, we all „love” the way Microsoft gives us new stuff (like forced updates in Windows 10). As we usually know better what and when should be applied, let’s say it is time to upgrade our guest integration services to the latest version.
I usually express strong conviction that HV integration services should be kept up to date, the thing most sysadmins disregards. Those tools are responsible for keeping your VMs in shape, maintain communication between them and host services, so they SHOULD be always updates. Of course, as with almost everything TEST it before applying on any important environment.
As on 2016-12-31, the latest HV Integration Services version is 6.3.9600.18398
Let’s say – we would like to upgrade all our Windows machines (those BEFORE Windows 10 and Windows 2016) . We can do it manually (not cool, not cool at all), semi-automatic (no reboot) or almost … magical way – fully automatic 😉
Let’s start we have proper source added to Chocolatey:
choco source add -n=public -s"https://www.myget.org/F/public-choco" --priority=10
choco install hvintegrationservices -y
win_manage: chocolatey_packages: hvintegrationservices: ensure: 6.3.9600.18398 dsc_reboot: dsc_reboot: message: Machine requested a reboot when: pending
Written by marcinbojko
31 grudnia, 2016 at 15:14
Napisane w work
Tagged with chocolatey, foreman, hyper-v, hypervisor, virtualisation, windows, win_manage, wirtualizacja
Administrator: dsc_username: Administrator dsc_disabled: false dsc_password: user: NT AUTHORITY\\SYSTEM password: P@$$w0rd
Written by marcinbojko
26 listopada, 2016 at 13:52
Napisane w work
Tagged with chocolatey, dsc, foreman, powershell, puppet, windows, win_manage
Bez wątpienia – Chocolatey (https://chocolatey.org/) jest doskonałym zarządcą pakietów dla systemu WIndows – zwłaszcza w instalacjach DesiredStateConfiguration. Trochę przytłacza mnogość sposobów instalacji pakietów (w zasadzie, każdy pakiet potrafi być oddzielnym kawałkiem kodu), jednak rekompensuje to z nawiązką ich niskim skomplikowaniem.
Owszem, sporo pakietów jest w oryginalnym repozytorium, jednak nie wszystkie pakiety źródłowe posiadają publiczne linki, tak aby można je było umieścić w samym pakiecie.
Rozwiązaniem jest np. tworzenie pakietów w repozytorium https://www.myget.org/, a same binarki trzymać np. 2 miejscach – firmowy intranet oraz linki publiczne.
Ponieważ mnie zawsze brakuje wspomnianych pakietów przedstawiam wam własne źródło, gdzie postaram się uzupełniać przydatne i brakujące pakiety.
Kilka zasad:
Bez zbędnej zwłoki:
Samo źródło: https://www.myget.org/feed/Packages/public-choco
Nuget v2: https://www.myget.org/F/public-choco/api/v2
RSS źródła z pakietami: https://www.myget.org/RSS/public-choco
Jak dodać źródło do swojego Chocolatey’a?
choco source add -n=NAZWA -s"https://www.myget.org/F/public-choco" --priority=10
Jak zainstalować/aktualizować pakiet?
choco install nazwapakietu -y choco upgrade nazwapakietu -y
Jak usunąć pakiet?
choco uninstall nazwapakietu -y
Jakie pakiety są w repo?
Na dzień dzisiejszy:
WPS-Office-Personal – https://www.myget.org/feed/public-choco/package/nuget/wps-office-personal
Zabbix-Agent3 – https://www.myget.org/feed/public-choco/package/nuget/zabbix-agent3
Pozostałe pakiety przerabiam z sum kontrolnych MD5 na SHA256 co zajmuje mi nieco czasu.
Written by marcinbojko
1 października, 2016 at 12:57
Napisane w open source, Uncategorized, work
Tagged with chocolatey, microsoft, office, open source, opensource, windows, work
| Pon | W | Śr | Czw | Pt | S | N |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 |