Skip to content

Commit 3ae35f4

Browse files
committed
This can sometimes use tcp/ip instead of unix sockets
1 parent 595f8c0 commit 3ae35f4

File tree

1 file changed

+1
-3
lines changed
  • app/src/main/java/fuzion24/device/vulnerability/vulnerabilities/system

1 file changed

+1
-3
lines changed

app/src/main/java/fuzion24/device/vulnerability/vulnerabilities/system/WeakSauce.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
import java.util.List;
1313

1414
public class WeakSauce implements VulnerabilityTest {
15-
16-
1715
@Override
1816
public List<CPUArch> getSupportedArchitectures() {
1917
ArrayList<CPUArch> archs = new ArrayList<CPUArch>();
@@ -41,6 +39,6 @@ public boolean isVulnerable(Context context) throws Exception {
4139
throw new Exception("No internet permission assigned to app to perform WeakSauce Test");
4240

4341
File dmAgentSocket = new File("/dev/socket/dmagent");
44-
return dmAgentSocket.canWrite() && dmAgentSocket.canRead();
42+
return dmAgentSocket.exists();
4543
}
4644
}

0 commit comments

Comments
 (0)