MCPcopy Index your code
hub / github.com/cSploit/android / spoof

Method spoof

cSploit/src/org/csploit/android/tools/ArpSpoof.java:54–69  ·  view source on GitHub ↗
(Target target, ArpSpoofReceiver receiver)

Source from the content-addressed store, hash-verified

52 }
53
54 public Child spoof(Target target, ArpSpoofReceiver receiver) throws ChildManager.ChildNotStartedException {
55 String commandLine = "";
56
57 try{
58 if(target.getType() == Type.NETWORK)
59 commandLine = "-i " + System.getNetwork().getInterface().getDisplayName() + " " + System.getGatewayAddress();
60
61 else
62 commandLine = "-i " + System.getNetwork().getInterface().getDisplayName() + " -t " + target.getCommandLineRepresentation() + " " + System.getGatewayAddress();
63 }
64 catch(Exception e){
65 System.errorLogging(e);
66 }
67
68 return super.async(commandLine, receiver);
69 }
70}

Callers 2

startMethod · 0.80
onClickMethod · 0.80

Calls 7

getNetworkMethod · 0.95
getGatewayAddressMethod · 0.95
errorLoggingMethod · 0.95
getInterfaceMethod · 0.80
getTypeMethod · 0.45
asyncMethod · 0.45

Tested by

no test coverage detected