Skip to content

Commit

Permalink
removed admin check since its not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
rtfmkiesel committed Jul 15, 2023
1 parent cf8d7c3 commit 29e91a6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cli/loldrivers-client/loldrivers-client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package main
import (
"flag"
"fmt"
"os"
"runtime"
"sync"
"time"
Expand Down Expand Up @@ -113,11 +112,6 @@ Options:
// Set the folders which are going to be scanned for files
var paths []string
if flagDir == "" {
// Since scanning the default folders requires admin privileges, check here
if _, err := os.Open("\\\\.\\PHYSICALDRIVE0"); err != nil {
logger.CatchCrit(fmt.Errorf("not running with administrative privileges"))
}

// User did not specify a path with '-d', use the default Windows paths
paths = append(paths, "C:\\Windows\\System32\\drivers")
paths = append(paths, "C:\\Windows\\System32\\DriverStore\\FileRepository")
Expand Down

0 comments on commit 29e91a6

Please sign in to comment.