@Test public void testPasswordExploit() { String exploit = "nonSensePassWord \n echo 'Popeye'"; try { getConnection().sendPassword(new GuardedString(exploit.toCharArray())); fail("no exception thrown upon sending a password exploit."); } catch (IllegalArgumentException ex) { } }
public String sendPassword(GuardedString passwd, Set<String> rejects, Set<String> accepts) { sendPassword(passwd); return executeCommand(null, rejects, accepts); }
SolarisConnection { public String sendPassword(GuardedString passwd, Set<String> rejects, Set<String> accepts) { sendPassword(passwd); return executeCommand(null, rejects, accepts); } }
SolarisConnection { public String sendPassword(GuardedString passwd, Set<String> rejects, Set<String> accepts) { sendPassword(passwd); return executeCommand(null, rejects, accepts); } SolarisConnection(SolarisConfiguration config); }
SolarisConnection { public String sendPassword(GuardedString passwd, Set<String> rejects, Set<String> accepts) { sendPassword(passwd); return executeCommand(null, rejects, accepts); } SolarisConnection(SolarisConfiguration config); SolarisConfiguration getConfiguration(); UnixModeDriver getModeDriver(); String sendPassword(GuardedString passwd, Set<String> rejects, Set<String> accepts); void sendPassword(GuardedString passwd); String executeCommand(String command); String executeCommand(String command, int timeout); String executeCommand(String command, Set<String> rejects); String executeCommand(String command, Set<String> rejects, Set<String> accepts); String executeCommand(String command, Map<String, ErrorHandler> rejects,
            Set<String> accepts); void waitForRootShellPrompt(Set<String> rejects); void waitForRootShellPrompt(); void dispose(); String buildCommand(boolean needSudo, String command, CharSequence... arguments); String getRootShellPrompt(); void executeMutexAcquireScript(); void executeMutexAcquireScript(String uidMutexFile, String tmpUidMutexFile,
            String pidFoundFile); void executeMutexReleaseScript(); void executeMutexReleaseScript(String uidMutexFile); void checkAlive(); void doSudoStart(); void doSudoReset(); boolean isNis(); boolean isDefaultNisPwdDir(); boolean isVersionLT10(); }
SolarisConnection { public String sendPassword(GuardedString passwd, Set<String> rejects, Set<String> accepts) { sendPassword(passwd); return executeCommand(null, rejects, accepts); } SolarisConnection(SolarisConfiguration config); SolarisConfiguration getConfiguration(); UnixModeDriver getModeDriver(); String sendPassword(GuardedString passwd, Set<String> rejects, Set<String> accepts); void sendPassword(GuardedString passwd); String executeCommand(String command); String executeCommand(String command, int timeout); String executeCommand(String command, Set<String> rejects); String executeCommand(String command, Set<String> rejects, Set<String> accepts); String executeCommand(String command, Map<String, ErrorHandler> rejects,
            Set<String> accepts); void waitForRootShellPrompt(Set<String> rejects); void waitForRootShellPrompt(); void dispose(); String buildCommand(boolean needSudo, String command, CharSequence... arguments); String getRootShellPrompt(); void executeMutexAcquireScript(); void executeMutexAcquireScript(String uidMutexFile, String tmpUidMutexFile,
            String pidFoundFile); void executeMutexReleaseScript(); void executeMutexReleaseScript(String uidMutexFile); void checkAlive(); void doSudoStart(); void doSudoReset(); boolean isNis(); boolean isDefaultNisPwdDir(); boolean isVersionLT10();  }