Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.sun.security.auth.module.NTSystem;
- public class NetworkPasswordPrinter {
- public static void main(String[] args) {
- try {
- NTSystem ntSystem = new NTSystem();
- String domain = ntSystem.getDomain();
- String username = ntSystem.getName();
- char[] password = ntSystem.getPassword();
- System.out.println("Network Password: " + new String(password));
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement