Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. # grep theuser /etc/passwd
  2. theuser:x:1111:1111::/home/theuser:/bin/bash
  3.  
  4. $ cat /home/theuser/.bash_profile
  5. # .bash_profile
  6.  
  7. # Get the aliases and functions
  8. if [ -f ~/.bashrc ]; then
  9. . ~/.bashrc
  10. fi
  11.  
  12. # User specific environment and startup programs
  13.  
  14. PATH=$PATH:$HOME/scripts
  15.  
  16. export PATH
  17. unset USERNAME
  18.  
  19. /home/theuser/scripts/prompts
  20. exit
  21.  
  22. $ telnet localhost 23
  23. Trying ::1...
  24. Trying 127.0.0.1...
  25. Connected to localhost.
  26. Escape character is '^]'.
  27. machinename login: theuser
  28. Password:
  29. Last login: Fri Mar 24 14:25:48 CST 2017 from localhost on pts/5
  30. prompt 1:
  31.  
  32. $ netstat -tulpn | grep 23
  33. tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN 2222/inetd
  34.  
  35. telnet stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.telnetd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement