Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
fw plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
OleksandrBlack committed Jul 18, 2022
1 parent 99fb117 commit 38ff4d6
Show file tree
Hide file tree
Showing 19 changed files with 194 additions and 207 deletions.
3 changes: 0 additions & 3 deletions firewall/inst_fw_db1000n.nsi

This file was deleted.

9 changes: 0 additions & 9 deletions firewall/inst_fw_distress.nsi

This file was deleted.

9 changes: 0 additions & 9 deletions firewall/inst_fw_mhddos.nsi

This file was deleted.

27 changes: 0 additions & 27 deletions firewall/uninst_fw_all.nsi

This file was deleted.

49 changes: 35 additions & 14 deletions installer.nsi
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
!addplugindir "plugins\"

Var uninstallerPath

Section "-hidden"
Expand Down Expand Up @@ -31,7 +33,7 @@ Section
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT}" "DisplayName" "${PRODUCT}"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT}" "UninstallString" '"$INSTDIR\${UNINSTALLER_NAME}.exe"'
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT}" "DisplayIcon" '"$INSTDIR\itarmy.ico",0'
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT}" "Publisher" "ITARMY of Ukraine"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT}" "Publisher" "IT Army of Ukraine"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT}" "URLInfoAbout" "https://github.com/OleksandrBlack/ukita_installer"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT}" "DisplayVersion" "${PRODUCT_VERSION}"
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT}" "NoModify" 1
Expand Down Expand Up @@ -115,38 +117,37 @@ Section "mhddos_proxy"
SetOutPath ${MHDDOS_PROXY_DIR}

;Add mhddos firewall rules
!include "firewall\inst_fw_mhddos.nsi"

File "resources\mhddos_config.ico"

FileOpen $9 mhddos.ini w
FileWrite $9 "###$(mhddos_settings) mhddos_proxy$\r$\n"
FileWrite $9 "###$(mhs_settings) mhddos_proxy$\r$\n"
FileWrite $9 "$\r$\n"
FileWrite $9 "##$(mhddos_text_lng):$\r$\n"
FileWrite $9 "##$(mhs_text_lng):$\r$\n"
FileWrite $9 "#lang = ua | en | es | de | pl | lt | nl | jp | it | cn$\r$\n"
FileWrite $9 "lang = $(mhddos_lang)$\r$\n"
FileWrite $9 "lang = $(mhs_lang)$\r$\n"
FileWrite $9 "$\r$\n"
FileWrite $9 "##$(mhddos_copies):$\r$\n"
FileWrite $9 "##$(mhs_copies):$\r$\n"
FileWrite $9 "#copies = 1 | 2 | auto$\r$\n"
FileWrite $9 "copies = 1$\r$\n"
FileWrite $9 "$\r$\n"
FileWrite $9 "##$(mhddos_vpn):$\r$\n"
FileWrite $9 "##$(mhs_vpn):$\r$\n"
FileWrite $9 "#vpn = true | false$\r$\n"
FileWrite $9 "vpn = false$\r$\n"
FileWrite $9 "$\r$\n"
FileWrite $9 "##$(mhddos_percents):$\r$\n"
FileWrite $9 "##$(mhs_percents):$\r$\n"
FileWrite $9 "#vpn-percents = 2$\r$\n"
FileWrite $9 "$\r$\n"
FileWrite $9 "##$(mhddos_threads):$\r$\n"
FileWrite $9 "##$(mhs_threads):$\r$\n"
FileWrite $9 "#threads = 8000$\r$\n"
FileWrite $9 "$\r$\n"
FileWrite $9 "##$(mhddos_requests)$\r$\n"
FileWrite $9 "##$(mhs_requests):$\r$\n"
FileWrite $9 "#requests-per-connection = 2000$\r$\n"
FileWrite $9 "$\r$\n"
FileWrite $9 "##$(mhddos_proxy)$\r$\n"
FileWrite $9 "##$(mhs_proxy):$\r$\n"
FileWrite $9 "#proxy = [socks4://114.231.123.38:3065, socks5://114.231.123.38:1080]$\r$\n"
FileWrite $9 "$\r$\n"
FileWrite $9 "##$(mhddos_proxies)$\r$\n"
FileWrite $9 "##$(mhs_proxies):$\r$\n"
FileWrite $9 "#proxies = proxies.txt | https://pastebin.com/raw/UkFWzLOt$\r$\n"
FileClose $9

Expand All @@ -156,6 +157,15 @@ Section "mhddos_proxy"
File /r "requirements\mhddos\x86\*"
${EndIf}

DetailPrint "AddAuthorizedApplication UkITA_MHDDOS_PROXY"
${If} ${RunningX64}
SimpleFC::AddApplication "UkITA_MHDDOS_PROXY" "${MHDDOS_PROXY_DIR}\mhddos_proxy_win.exe" 0 2 "" 1
nsExec::Exec 'cmd /c "powershell -ExecutionPolicy Bypass -NoProfile -Command Add-MpPreference -ExclusionProcess "mhddos_proxy_win.exe""'
${Else}
SimpleFC::AddApplication "UkITA_MHDDOS_PROXY" "${MHDDOS_PROXY_DIR}\mhddos_proxy_win_x86.exe" 0 2 "" 1
nsExec::Exec 'cmd /c "powershell -ExecutionPolicy Bypass -NoProfile -Command Add-MpPreference -ExclusionProcess "mhddos_proxy_win_x86.exe""'
${EndIf}

CreateShortCut "$DESKTOP\MHDDOS_PROXY.lnk" "${MHDDOS_PROXY_DIR}\mhddos_proxy_win.exe" "" "${MHDDOS_PROXY_DIR}\mhddos_proxy_win.exe" 0
CreateShortCut "$DESKTOP\MHDDOS_PROXY_CONFIG.lnk" "${MHDDOS_PROXY_DIR}\mhddos.ini" "" "${MHDDOS_PROXY_DIR}\mhddos_config.ico" 0

Expand All @@ -165,7 +175,6 @@ Section "db1000n"
SetOutPath ${DB1000N_DIR}

;Add mhddos firewall rules
!include "firewall\inst_fw_db1000n.nsi"

File "resources\itarmy_d1000n.ico"

Expand All @@ -175,6 +184,10 @@ Section "db1000n"
File /r "requirements\db1000n\x86\*"
${EndIf}

DetailPrint "AddAuthorizedApplication UkITA_DB1000N"
SimpleFC::AddApplication "UkITA_DB1000N" "${DB1000N_DIR}\db1000n.exe" 0 2 "" 1
nsExec::Exec 'cmd /c "powershell -ExecutionPolicy Bypass -NoProfile -Command Add-MpPreference -ExclusionProcess "db1000n.exe""'

CreateShortCut "$DESKTOP\DB1000N.lnk" "$INSTDIR\runner.bat" "-itarmy_db1000n" "${DB1000N_DIR}\itarmy_d1000n.ico" 0

SectionEnd
Expand All @@ -184,7 +197,6 @@ Section "distress"
SetOutPath ${DISTRESS_DIR}

;Add mhddos firewall rules
!include "firewall\inst_fw_distress.nsi"

File "resources\itarmy_distress.ico"

Expand All @@ -194,6 +206,15 @@ Section "distress"
File /r "requirements\distress\x86\*"
${EndIf}

DetailPrint "AddAuthorizedApplication UkITA_DISTRESS"
${If} ${RunningX64}
SimpleFC::AddApplication "UkITA_DISTRESS" "${DISTRESS_DIR}\distress_x86_64-pc-windows-msvc.exe" 0 2 "" 1
nsExec::Exec 'cmd /c "powershell -ExecutionPolicy Bypass -NoProfile -Command Add-MpPreference -ExclusionProcess "distress_x86_64-pc-windows-msvc.exe""'
${Else}
SimpleFC::AddApplication "UkITA_DISTRESS" "${DISTRESS_DIR}\distress_i686-pc-windows-msvc.exe" 0 2 "" 1
nsExec::Exec 'cmd /c "powershell -ExecutionPolicy Bypass -NoProfile -Command Add-MpPreference -ExclusionProcess "distress_i686-pc-windows-msvc.exe""'
${EndIf}

CreateShortCut "$DESKTOP\DISTRESS.lnk" "$INSTDIR\runner.bat" "-itarmy_distress" "${DISTRESS_DIR}\itarmy_distress.ico" 0

SectionEnd
Expand Down
8 changes: 4 additions & 4 deletions options.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
;--------------------------------
;General

!packhdr tmpexe.tmp "UPX --best -f -q -v --ultra-brute --all-methods --all-filters --compress-icons=0 tmpexe.tmp" ;upx
!packhdr tmpexe.tmp "UPX --best -f -q -v --ultra-brute --all-methods --all-filters --compress-icons=0 tmpexe.tmp" ;upx

Unicode true
ManifestDPIAware true
Expand Down Expand Up @@ -40,8 +40,8 @@
;Installer Version Information
VIAddVersionKey "ProductName" "${PRODUCT}"
VIAddVersionKey "CompanyName" "IT ARMY of Ukraine"
VIAddVersionKey "LegalCopyright" "Copyright ©2022 UA ItArmy Installer"
VIAddVersionKey "FileDescription" "UA ItArmy Installer"
VIAddVersionKey "LegalCopyright" "Copyright ©2022 UkITA Installer"
VIAddVersionKey "FileDescription" "UkITA Installer"
VIAddVersionKey "FileVersion" "${PRODUCT_VERSION}"
VIProductVersion "${PRODUCT_VERSION}.0"

Expand All @@ -66,7 +66,7 @@
ShowUninstDetails "show"

;Get installation folder from registry if available
InstallDirRegKey HKLM "Software\${PRODUCT}" ""
InstallDirRegKey HKLM "Software\${PRODUCT}" "InstallLocation"

;--------------------------------
;Interface Settings
Expand Down
Binary file added plugins/SimpleFC.dll
Binary file not shown.
22 changes: 11 additions & 11 deletions translations.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@
!insertmacro MUI_LANGUAGE "Italian"
!insertmacro MUI_LANGUAGE "Japanese"
!insertmacro MUI_LANGUAGE "Lithuanian"
!insertmacro MUI_LANGUAGE "Polish"
!insertmacro MUI_LANGUAGE "Spanish"
!insertmacro MUI_LANGUAGE "Ukrainian"
!insertmacro MUI_LANGUAGE "SimpChinese"
;!insertmacro MUI_LANGUAGE "Polish"

;Installer/Uninstaller translations
!addincludedir translations

;The languages should be in alphabetical order
!include English.nsi
!include Dutch.nsi
!include German.nsi
!include Italian.nsi
!include Japanese.nsi
!include Lithuanian.nsi
!include Polish.nsi
!include Spanish.nsi
!include Ukrainian.nsi
!include SimpChinese.nsi
!include english.nsi
!include dutch.nsi
!include german.nsi
!include italian.nsi
!include japanese.nsi
!include lithuanian.nsi
!include spanish.nsi
!include ukrainian.nsi
!include simpchinese.nsi
;!include polish.nsi
46 changes: 23 additions & 23 deletions translations/SimpChinese.nsi
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
;Installer strings
LangString inst_unist ${LANG_TRADCHINESE} "卸载以前的版本."
LangString inst_uninstall_question ${LANG_TRADCHINESE} "当前版本将被卸载。"
LangString inst_unist ${LANG_SIMPCHINESE} "卸载以前的版本."
LangString inst_uninstall_question ${LANG_SIMPCHINESE} "当前版本将被卸载。"

LangString inf_title ${LANG_TRADCHINESE} "检查依赖性"
LangString inf_subtitle ${LANG_TRADCHINESE} "安装前请阅读"
LangString inf_button ${LANG_TRADCHINESE} "下载"
LangString inf_lable_1 ${LANG_TRADCHINESE} " 要在Windows 7上运行mhddos_proxy_installer,你需要安装最新的更新。"
LangString inf_lable_2 ${LANG_TRADCHINESE} "请下载并运行UpdatePack7R2工具,以快速自动更新Windows 7。"
LangString inf_title ${LANG_SIMPCHINESE} "检查依赖性"
LangString inf_subtitle ${LANG_SIMPCHINESE} "安装前请阅读"
LangString inf_button ${LANG_SIMPCHINESE} "下载"
LangString inf_lable_1 ${LANG_SIMPCHINESE} " 要在Windows 7上运行ukita_installer,你需要安装最新的更新。"
LangString inf_lable_2 ${LANG_SIMPCHINESE} "请下载并运行UpdatePack7R2工具,以快速自动更新Windows 7。"

LangString open_telegram_link ${LANG_TRADCHINESE} "打开Telegram支持"
LangString open_discord_link ${LANG_TRADCHINESE} "打开Discord支持"
LangString open_telegram_link ${LANG_SIMPCHINESE} "打开Telegram支持"
LangString open_discord_link ${LANG_SIMPCHINESE} "打开Discord支持"

LangString terms_title ${LANG_TRADCHINESE} "使用条款"
LangString terms_subtitle ${LANG_TRADCHINESE} "使用条款 $(^NameDA)"
LangString terms_terms ${LANG_TRADCHINESE} "继续安装,你同意:$\n$\r$\n- 使用这些应用程序完全是为了帮助 '乌克兰的IT军队',其唯一目的是反击俄罗斯的侵略。$\r$\n$\r- 这些工具只能用来对付位于俄罗斯境内或临时占领区的服务器。$\r$\n$\r- 这些工具不能用于恶意、海盗行为、恐怖主义或不人道行为。"
LangString terms_firewall ${LANG_TRADCHINESE} "在安装过程中,'Windows防火墙 '和 'Windows Defender '将自动更新为正确的设置,以便应用程序能够正常工作。"
LangString terms_title ${LANG_SIMPCHINESE} "使用条款"
LangString terms_subtitle ${LANG_SIMPCHINESE} "使用条款 $(^NameDA)"
LangString terms_terms ${LANG_SIMPCHINESE} "继续安装,你同意:$\n$\r$\n- 使用这些应用程序完全是为了帮助 '乌克兰的IT军队',其唯一目的是反击俄罗斯的侵略。$\r$\n$\r- 这些工具只能用来对付位于俄罗斯境内或临时占领区的服务器。$\r$\n$\r- 这些工具不能用于恶意、海盗行为、恐怖主义或不人道行为。"
LangString terms_firewall ${LANG_SIMPCHINESE} "在安装过程中,'Windows防火墙 '和 'Windows Defender '将自动更新为正确的设置,以便应用程序能够正常工作。"

;MHDDOSSETTINGS
LangString mhddos_settings ${LANG_TRADCHINESE} "设置"
LangString mhddos_text_lng ${LANG_TRADCHINESE} "改变语言"
LangString mhddos_lang ${LANG_TRADCHINESE} "CN"
LangString mhddos_copies ${LANG_TRADCHINESE} "运行多个副本(自动获得最大价值,需要3个以上核心CPU和稳定的网络)"
LangString mhddos_vpn ${LANG_TRADCHINESE} "将你的IP/VPN添加到攻击中(当使用VPN或专用服务器时)"
LangString mhddos_percents ${LANG_TRADCHINESE} "当vpn=true时,指定使用我的IP的机会(默认2%)。"
LangString mhddos_threads ${LANG_TRADCHINESE} "每个副本的线程数(默认为8000)。"
LangString mhddos_requests ${LANG_TRADCHINESE} "在单个连接上要发送多少个请求(默认为2000)。"
LangString mhddos_proxy ${LANG_TRADCHINESE} "要指定自定义代理,请使用代理选项"
LangString mhddos_proxies ${LANG_TRADCHINESE} "如果代理列表太大,可以使用本地或远程文件选项proxies。每个代理应该在一个新的行上"
LangString mhs_settings ${LANG_SIMPCHINESE} "设置"
LangString mhs_text_lng ${LANG_SIMPCHINESE} "改变语言"
LangString mhs_lang ${LANG_SIMPCHINESE} "CN"
LangString mhs_copies ${LANG_SIMPCHINESE} "运行多个副本(自动获得最大价值,需要3个以上核心CPU和稳定的网络)"
LangString mhs_vpn ${LANG_SIMPCHINESE} "将你的IP/VPN添加到攻击中(当使用VPN或专用服务器时)"
LangString mhs_percents ${LANG_SIMPCHINESE} "当vpn=true时,指定使用我的IP的机会(默认2%)。"
LangString mhs_threads ${LANG_SIMPCHINESE} "每个副本的线程数(默认为8000)。"
LangString mhs_requests ${LANG_SIMPCHINESE} "在单个连接上要发送多少个请求(默认为2000)。"
LangString mhs_proxy ${LANG_SIMPCHINESE} "要指定自定义代理,请使用代理选项"
LangString mhs_proxies ${LANG_SIMPCHINESE} "如果代理列表太大,可以使用本地或远程文件选项proxies。每个代理应该在一个新的行上"
20 changes: 10 additions & 10 deletions translations/dutch.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ LangString terms_terms ${LANG_DUTCH} "Door de installatie voort te zetten, gaat
LangString terms_firewall ${LANG_DUTCH} "Tijdens de installatie zullen 'Windows Firewall' en 'Windows Defender' automatisch worden bijgewerkt met de juiste instellingen zodat de toepassingen goed kunnen werken."

;MHDDOSSETTINGS
LangString mhddos_settings ${LANG_DUTCH} "Instellingen"
LangString mhddos_text_lng ${LANG_DUTCH} "Taal wijzigen"
LangString mhddos_lang ${LANG_DUTCH} "NL"
LangString mhddos_copies ${LANG_DUTCH} "Draai meerdere kopieën (auto voor maximale waarde, vereist 3+ core CPU en stabiel netwerk)"
LangString mhddos_vpn ${LANG_DUTCH} "Voeg uw IP/VPN toe aan de aanval (bij gebruik van VPN of dedicated server)"
LangString mhddos_percents ${LANG_DUTCH} "Geef een kans op het gebruik van mijn IP wanneer vpn=true (standaard 2%)"
LangString mhddos_threads ${LANG_DUTCH} "Aantal threads per kopie (standaard 8000)"
LangString mhddos_requests ${LANG_DUTCH} "Hoeveel verzoeken te verzenden op een enkele verbinding (standaard is 2000)"
LangString mhddos_proxy ${LANG_DUTCH} "Om aangepaste proxy's te specificeren, gebruik de proxy-optie."
LangString mhddos_proxies ${LANG_DUTCH} "Als de lijst met proxy's te groot is, gebruik dan de lokale of externe bestandsoptie proxy's. Elke proxy moet op een nieuwe regel staan."
LangString mhs_settings ${LANG_DUTCH} "Instellingen"
LangString mhs_text_lng ${LANG_DUTCH} "Taal wijzigen"
LangString mhs_lang ${LANG_DUTCH} "NL"
LangString mhs_copies ${LANG_DUTCH} "Draai meerdere kopieën (auto voor maximale waarde, vereist 3+ core CPU en stabiel netwerk)"
LangString mhs_vpn ${LANG_DUTCH} "Voeg uw IP/VPN toe aan de aanval (bij gebruik van VPN of dedicated server)"
LangString mhs_percents ${LANG_DUTCH} "Geef een kans op het gebruik van mijn IP wanneer vpn=true (standaard 2%)"
LangString mhs_threads ${LANG_DUTCH} "Aantal threads per kopie (standaard 8000)"
LangString mhs_requests ${LANG_DUTCH} "Hoeveel verzoeken te verzenden op een enkele verbinding (standaard is 2000)"
LangString mhs_proxy ${LANG_DUTCH} "Om aangepaste proxy's te specificeren, gebruik de proxy-optie."
LangString mhs_proxies ${LANG_DUTCH} "Als de lijst met proxy's te groot is, gebruik dan de lokale of externe bestandsoptie proxy's. Elke proxy moet op een nieuwe regel staan."
Loading

0 comments on commit 38ff4d6

Please sign in to comment.