Browse Source

Fix false positive trojan

master v1.2
Merith-TK 10 months ago
parent
commit
b3400f3bff
3 changed files with 13 additions and 19 deletions
  1. +8
    -13
      Makefile
  2. +2
    -3
      exec.go
  3. +3
    -3
      main.go

+ 8
- 13
Makefile View File

@ -1,20 +1,15 @@
default:
go build -o MineCraft.portable.exe -ldflags "-H windowsgui"
rcedit MineCraft.portable.exe \
--set-icon assets/icon.ico \
--set-version-string "FileDescription" "MineCraft Portable" \
--set-version-string "ProductName" "MineCraft Portable" \
--set-version-string "LegalCopyright" "Merith.TK [PortableLauncher]"
#GOOS=linux go build -o MineCraft.portable.linux.amd64
rsrc -ico assets/icon.ico
go build -ldflags "-H windowsgui"
clean:
rm MineCraft.portable.exe
rm MineCraft.portable.linux.amd64
rm minecraft.portable.exe
rm minecraft.portable.testing.exe
javatest:
PATH=/mingw64/bin:/usr/bin:/d/Scoop/apps/go/current/bin go run ./
malware:
go build -o MineCraft.portable.malware.exe -ldflags "-H windowsgui"
"C:/ProgramData/Microsoft/Windows Defender/Platform/4.18.2010.7-0/MpCmdRun.exe" -Scan -ScanType 3 -File F:/Workspace/minecraft.portable/MineCraft.portable.malware.exe
malware: default
go build -o minecraft.portable.testing.exe -ldflags "-H windowsgui"
"C:/ProgramData/Microsoft/Windows Defender/Platform/4.18.2010.7-0/MpCmdRun.exe" -Scan -ScanType 3 -File F:/Workspace/minecraft.portable/minecraft.portable.exe
"C:/ProgramData/Microsoft/Windows Defender/Platform/4.18.2010.7-0/MpCmdRun.exe" -Scan -ScanType 3 -File F:/Workspace/minecraft.portable/minecraft.portable.testing.exe

+ 2
- 3
exec.go View File

@ -2,10 +2,9 @@ package main
import (
"fmt"
"log"
"os"
"os/exec"
"github.com/gen2brain/dlgs"
)
/*
@ -28,7 +27,7 @@ func minecraftexe() {
func unknownexe(execute string, args string) {
filecheck(execute)
if _, err := os.Stat("MinecraftData/" + execute); err != nil {
dlgs.Error("[MineCraftPortable]: ERROR", execute+" not found, did you edit config.portable.json?")
log.Fatal("[MineCraftPortable]: ERROR", execute+" not found, did you edit config.portable.json?")
}
cmd := exec.Command("MinecraftData/" + execute)
cmd.Stdout = os.Stdout

+ 3
- 3
main.go View File

@ -5,9 +5,9 @@ import (
"fmt"
"io"
"io/ioutil"
"log"
"os"
"github.com/gen2brain/dlgs"
//"github.com/gen2brain/dlgs"
)
var (
@ -43,7 +43,7 @@ func main() {
}
func createConfig() (string, bool) {
dlgs.Warning("[MineCraftPortable]", "This application takes a bit to work on the first run, please be patient")
log.Println("[MineCraftPortable]", "This application takes a bit to work on the first run, please be patient")
file, _ := os.Create(configfile)
defer file.Close()

Loading…
Cancel
Save