Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 637 Vote(s) - 3.43 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Upgrade NC session to full shell

#1
I want to share with you a very quick and simple technique to turn your fragile netcat shell into a fully-featured shell, with tab completion, job control, and all.

I've seen this talked about on a couple blogs but it seems to not be a very well known trick so I wanted to share it.

You're probably already familiar with 'python -c 'import pty;pty.spawn("/bin/sh")'. This is good but it lacks many features that would make life easier.

Next time you get a shell with netcat, do the python trick or similar to get a tty, then use CTRL+Z to background it:


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


Now get the information for the current shell:


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


All you need here is the term type "xterm-256color" and the window size "rows 24; columns 80".

Now set the current terminal type to "raw" and set it to echo input characters:


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


With stty as "raw" you will not see the commands and will have to type blindly for a second. Use 'fg' to bring the nc shell to the foreground. Once you're back in the nc shell use 'reset' to reset the terminal. It will look a little off.

After you've reset, define the terminal attributes in the netcat shell:


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.



That should be it.

Linked articles [Clearnet]

[To see links please register here]

[To see links please register here]

[To see links please register here]

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through