(Target target, ArpSpoofReceiver receiver)
| 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 | } |
no test coverage detected