How do I create a TCP listener with netcat and put it in the background?What are the differences between netcat-traditional and netcat-openbsd?Netcat not working (at least, not that I can tell)How do I send files with netcat using find?
How can I get a ride in the jump seat as a non-professional pilot?
Does being invisible grant advantage on stealth checks by RAW?
Permanent river of lava
Retracting Recommendation Letters
Propagator of a real scalar field does not give an unambiguous result
Why do cargo airlines frequently choose passenger aircraft rather than aircraft designed specifically for cargo?
Feeling of forcing oneself to do something
How to make Emacs "forget" code evaluated in scratch buffer?
What's the best way to keep cover of a pan slightly opened?
Prefix all commands in shell
How do electric hot water heaters explode and what can be done to prevent that from happening?
Does "dd" command without parameter or input/output redirection do anything?
hfill doesn't work between minipages
Would an Illegitimate child of a monarch have been recognized at the Russian court?
Why does std::atomic constructor behave different in C++14 and C++17
Intuitive explanation why some autonomous DEs go to infinity in finite time.
Should I still follow "programming to an interface not implementation" even if I think using concrete class members is the simpler solution?
Turning off Apple hardware checks on startup
Recommendation for a fixed-step ODE solver?
When to bemoan and when to moan
How does vampirism work in 5e?
What movie or fandom is this jewelry from?
Why impeach Trump now and not earlier?
What is the purpose of the rules in counterpoint composition?
How do I create a TCP listener with netcat and put it in the background?
What are the differences between netcat-traditional and netcat-openbsd?Netcat not working (at least, not that I can tell)How do I send files with netcat using find?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I’m using nc -l to create a listener socket, but then it just.....listens.....and I can’t issue any further commands.
How do I put it in the background so I can maintain the listener and keep issuing commands in the CLI? I'm using Ubuntu Server 18.04.
netcat
add a comment
|
I’m using nc -l to create a listener socket, but then it just.....listens.....and I can’t issue any further commands.
How do I put it in the background so I can maintain the listener and keep issuing commands in the CLI? I'm using Ubuntu Server 18.04.
netcat
add a comment
|
I’m using nc -l to create a listener socket, but then it just.....listens.....and I can’t issue any further commands.
How do I put it in the background so I can maintain the listener and keep issuing commands in the CLI? I'm using Ubuntu Server 18.04.
netcat
I’m using nc -l to create a listener socket, but then it just.....listens.....and I can’t issue any further commands.
How do I put it in the background so I can maintain the listener and keep issuing commands in the CLI? I'm using Ubuntu Server 18.04.
netcat
netcat
edited Sep 27 at 18:21
zx485
1,7285 gold badges15 silver badges18 bronze badges
1,7285 gold badges15 silver badges18 bronze badges
asked Sep 27 at 16:48
GreatWhiteSlarkGreatWhiteSlark
254 bronze badges
254 bronze badges
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
Put and ampersand (&) at the end of the command.
$ nc -l 8080 &
It might be better to open another terminal window though, and keep your listener in the foreground.
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1177117%2fhow-do-i-create-a-tcp-listener-with-netcat-and-put-it-in-the-background%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Put and ampersand (&) at the end of the command.
$ nc -l 8080 &
It might be better to open another terminal window though, and keep your listener in the foreground.
add a comment
|
Put and ampersand (&) at the end of the command.
$ nc -l 8080 &
It might be better to open another terminal window though, and keep your listener in the foreground.
add a comment
|
Put and ampersand (&) at the end of the command.
$ nc -l 8080 &
It might be better to open another terminal window though, and keep your listener in the foreground.
Put and ampersand (&) at the end of the command.
$ nc -l 8080 &
It might be better to open another terminal window though, and keep your listener in the foreground.
answered Sep 27 at 16:54
Ryan J. YoderRyan J. Yoder
7584 silver badges14 bronze badges
7584 silver badges14 bronze badges
add a comment
|
add a comment
|
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1177117%2fhow-do-i-create-a-tcp-listener-with-netcat-and-put-it-in-the-background%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown