Working with netcat












-1















I'm sorry to distract you. I am studying at the institute. At the moment I am passing through the subject "Local computer networks". It is necessary to perform a laboratory, and I have a rather old computer (this manifests itself when I launch the clonezilla image through the virtualbox). I get an error:




"This kernel requires the following features not present on the CPU: pae Unable to boot — please use a kernel appropriate for your CPU clonezilla".




I have a rather old laptop. I believe that because of this, my image does not start. I give the text of the task:




Work with netcat
It uses the program nc.openbsd from the netcat-openbsd package. With
interaction with a remote and / or complex application may be required
Experienced way to choose the values ​​of the delay between reception and dispatch
packages -i (usually one second) and connection wait values ​​-w
(usually three seconds).





  1. Get the ability to send http traffic of the Host through the Router, for of this:



    1.1 Organize socks proxies using ssh, option -D;



    1.2 Configure the firefox browser to use the received socks proxy;



  2. In the browser, open the http://www.bstu.by/admin/login.php page using Browser's "inspector" (called in firefox ctrl + shift + k)
    disable the network tab use the cache and change the address to send
    the form data in such a way so that the data would be sent to the host
    in pre-running mode waiting netcat;


  3. Receive in netcat in idle mode connections on the Server http request from netcat and the browser from the Host;


  4. Transfer via netcat in the standby mode of the connection in response to requests from the previous item, the current date and time
    in Russian locale ru_RU, for the browser - c using standard coding
    text UTF-8 for example http://www.bstu.by/admin/login.php, automatic
    detection should work;


  5. Get the contents of a web document on the server using netcat in client mode http://www.bstu.by/admin/login.php, sending an http
    request based on received from the browser in task 3;


  6. Transfer via netcat in the connection standby mode in response to a browser request from the Host, the web document is identical to
    http://www.bstu.by/admin/login.php;


  7. Retrieve the web form data from the Server from step 3, changing to document from the previous item, the address for sending the form data
    the way that the data would be sent to the Server;


  8. Using dnsmasq, change the domain value on the Router bstu.by to the server, repeat steps 3-6;



Install dnsmasq apt-get install dnsmasq Lines beginning with ">" are
intended for input into editable file without this sequence



Edit
dnsmasq configuration: nano /etc/dnsmasq.conf Add a line with your
"virus domain for localhost"
address = / dev.me / 127.0.0.1 Specify the server for parsing unknown domains




server = 127.0.0.2




Restart the dnsmasq service /etc/init.d/dnsmasq restart Set up the system to use dnsmasq as a DNS server. nano /etc/resolv.conf




nameserver 127.0.0.1




New local subdomains are ready. ping dev.me, ping something.dev.me, ping another.domain.dev.me




  1. Using a PAC file
    (proxy auto-config), configure simultaneous use local and test
    networks in firefox, example, repeat steps 3-6.




Thank you in advance.










share|improve this question









New contributor




Roman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • First of all, welcome to the site. Second, Ask Ubuntu answers questions related to Ubuntu OS, but we do not assist in doing homework or assignments ( at least without users showing what they've tried so far and what part is giving trouble ). Additionally, depending on university policy they may not be happy if you reveal the contents of the training material, so please beware of that. As for Clonezilla it is not related to netcat. You may want to find out your CPU architecture and download Clonezilla appropriate for your system first.

    – Sergiy Kolodyazhnyy
    3 hours ago











  • Possible off-topic question. Clonezilla is not Ubuntu, nor an official flavor of Ubuntu, thus off-topic on this site. Refer askubuntu.com/help/on-topic (I suspect you have a i686/x86 class cpu and tried to boot a x86_64 OS your machine cannot use. Lubuntu & Xubuntu still support x86/i686 class. with more flavors offering the option up to 18.04 LTS)

    – guiverc
    1 hour ago
















-1















I'm sorry to distract you. I am studying at the institute. At the moment I am passing through the subject "Local computer networks". It is necessary to perform a laboratory, and I have a rather old computer (this manifests itself when I launch the clonezilla image through the virtualbox). I get an error:




"This kernel requires the following features not present on the CPU: pae Unable to boot — please use a kernel appropriate for your CPU clonezilla".




I have a rather old laptop. I believe that because of this, my image does not start. I give the text of the task:




Work with netcat
It uses the program nc.openbsd from the netcat-openbsd package. With
interaction with a remote and / or complex application may be required
Experienced way to choose the values ​​of the delay between reception and dispatch
packages -i (usually one second) and connection wait values ​​-w
(usually three seconds).





  1. Get the ability to send http traffic of the Host through the Router, for of this:



    1.1 Organize socks proxies using ssh, option -D;



    1.2 Configure the firefox browser to use the received socks proxy;



  2. In the browser, open the http://www.bstu.by/admin/login.php page using Browser's "inspector" (called in firefox ctrl + shift + k)
    disable the network tab use the cache and change the address to send
    the form data in such a way so that the data would be sent to the host
    in pre-running mode waiting netcat;


  3. Receive in netcat in idle mode connections on the Server http request from netcat and the browser from the Host;


  4. Transfer via netcat in the standby mode of the connection in response to requests from the previous item, the current date and time
    in Russian locale ru_RU, for the browser - c using standard coding
    text UTF-8 for example http://www.bstu.by/admin/login.php, automatic
    detection should work;


  5. Get the contents of a web document on the server using netcat in client mode http://www.bstu.by/admin/login.php, sending an http
    request based on received from the browser in task 3;


  6. Transfer via netcat in the connection standby mode in response to a browser request from the Host, the web document is identical to
    http://www.bstu.by/admin/login.php;


  7. Retrieve the web form data from the Server from step 3, changing to document from the previous item, the address for sending the form data
    the way that the data would be sent to the Server;


  8. Using dnsmasq, change the domain value on the Router bstu.by to the server, repeat steps 3-6;



Install dnsmasq apt-get install dnsmasq Lines beginning with ">" are
intended for input into editable file without this sequence



Edit
dnsmasq configuration: nano /etc/dnsmasq.conf Add a line with your
"virus domain for localhost"
address = / dev.me / 127.0.0.1 Specify the server for parsing unknown domains




server = 127.0.0.2




Restart the dnsmasq service /etc/init.d/dnsmasq restart Set up the system to use dnsmasq as a DNS server. nano /etc/resolv.conf




nameserver 127.0.0.1




New local subdomains are ready. ping dev.me, ping something.dev.me, ping another.domain.dev.me




  1. Using a PAC file
    (proxy auto-config), configure simultaneous use local and test
    networks in firefox, example, repeat steps 3-6.




Thank you in advance.










share|improve this question









New contributor




Roman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • First of all, welcome to the site. Second, Ask Ubuntu answers questions related to Ubuntu OS, but we do not assist in doing homework or assignments ( at least without users showing what they've tried so far and what part is giving trouble ). Additionally, depending on university policy they may not be happy if you reveal the contents of the training material, so please beware of that. As for Clonezilla it is not related to netcat. You may want to find out your CPU architecture and download Clonezilla appropriate for your system first.

    – Sergiy Kolodyazhnyy
    3 hours ago











  • Possible off-topic question. Clonezilla is not Ubuntu, nor an official flavor of Ubuntu, thus off-topic on this site. Refer askubuntu.com/help/on-topic (I suspect you have a i686/x86 class cpu and tried to boot a x86_64 OS your machine cannot use. Lubuntu & Xubuntu still support x86/i686 class. with more flavors offering the option up to 18.04 LTS)

    – guiverc
    1 hour ago














-1












-1








-1








I'm sorry to distract you. I am studying at the institute. At the moment I am passing through the subject "Local computer networks". It is necessary to perform a laboratory, and I have a rather old computer (this manifests itself when I launch the clonezilla image through the virtualbox). I get an error:




"This kernel requires the following features not present on the CPU: pae Unable to boot — please use a kernel appropriate for your CPU clonezilla".




I have a rather old laptop. I believe that because of this, my image does not start. I give the text of the task:




Work with netcat
It uses the program nc.openbsd from the netcat-openbsd package. With
interaction with a remote and / or complex application may be required
Experienced way to choose the values ​​of the delay between reception and dispatch
packages -i (usually one second) and connection wait values ​​-w
(usually three seconds).





  1. Get the ability to send http traffic of the Host through the Router, for of this:



    1.1 Organize socks proxies using ssh, option -D;



    1.2 Configure the firefox browser to use the received socks proxy;



  2. In the browser, open the http://www.bstu.by/admin/login.php page using Browser's "inspector" (called in firefox ctrl + shift + k)
    disable the network tab use the cache and change the address to send
    the form data in such a way so that the data would be sent to the host
    in pre-running mode waiting netcat;


  3. Receive in netcat in idle mode connections on the Server http request from netcat and the browser from the Host;


  4. Transfer via netcat in the standby mode of the connection in response to requests from the previous item, the current date and time
    in Russian locale ru_RU, for the browser - c using standard coding
    text UTF-8 for example http://www.bstu.by/admin/login.php, automatic
    detection should work;


  5. Get the contents of a web document on the server using netcat in client mode http://www.bstu.by/admin/login.php, sending an http
    request based on received from the browser in task 3;


  6. Transfer via netcat in the connection standby mode in response to a browser request from the Host, the web document is identical to
    http://www.bstu.by/admin/login.php;


  7. Retrieve the web form data from the Server from step 3, changing to document from the previous item, the address for sending the form data
    the way that the data would be sent to the Server;


  8. Using dnsmasq, change the domain value on the Router bstu.by to the server, repeat steps 3-6;



Install dnsmasq apt-get install dnsmasq Lines beginning with ">" are
intended for input into editable file without this sequence



Edit
dnsmasq configuration: nano /etc/dnsmasq.conf Add a line with your
"virus domain for localhost"
address = / dev.me / 127.0.0.1 Specify the server for parsing unknown domains




server = 127.0.0.2




Restart the dnsmasq service /etc/init.d/dnsmasq restart Set up the system to use dnsmasq as a DNS server. nano /etc/resolv.conf




nameserver 127.0.0.1




New local subdomains are ready. ping dev.me, ping something.dev.me, ping another.domain.dev.me




  1. Using a PAC file
    (proxy auto-config), configure simultaneous use local and test
    networks in firefox, example, repeat steps 3-6.




Thank you in advance.










share|improve this question









New contributor




Roman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I'm sorry to distract you. I am studying at the institute. At the moment I am passing through the subject "Local computer networks". It is necessary to perform a laboratory, and I have a rather old computer (this manifests itself when I launch the clonezilla image through the virtualbox). I get an error:




"This kernel requires the following features not present on the CPU: pae Unable to boot — please use a kernel appropriate for your CPU clonezilla".




I have a rather old laptop. I believe that because of this, my image does not start. I give the text of the task:




Work with netcat
It uses the program nc.openbsd from the netcat-openbsd package. With
interaction with a remote and / or complex application may be required
Experienced way to choose the values ​​of the delay between reception and dispatch
packages -i (usually one second) and connection wait values ​​-w
(usually three seconds).





  1. Get the ability to send http traffic of the Host through the Router, for of this:



    1.1 Organize socks proxies using ssh, option -D;



    1.2 Configure the firefox browser to use the received socks proxy;



  2. In the browser, open the http://www.bstu.by/admin/login.php page using Browser's "inspector" (called in firefox ctrl + shift + k)
    disable the network tab use the cache and change the address to send
    the form data in such a way so that the data would be sent to the host
    in pre-running mode waiting netcat;


  3. Receive in netcat in idle mode connections on the Server http request from netcat and the browser from the Host;


  4. Transfer via netcat in the standby mode of the connection in response to requests from the previous item, the current date and time
    in Russian locale ru_RU, for the browser - c using standard coding
    text UTF-8 for example http://www.bstu.by/admin/login.php, automatic
    detection should work;


  5. Get the contents of a web document on the server using netcat in client mode http://www.bstu.by/admin/login.php, sending an http
    request based on received from the browser in task 3;


  6. Transfer via netcat in the connection standby mode in response to a browser request from the Host, the web document is identical to
    http://www.bstu.by/admin/login.php;


  7. Retrieve the web form data from the Server from step 3, changing to document from the previous item, the address for sending the form data
    the way that the data would be sent to the Server;


  8. Using dnsmasq, change the domain value on the Router bstu.by to the server, repeat steps 3-6;



Install dnsmasq apt-get install dnsmasq Lines beginning with ">" are
intended for input into editable file without this sequence



Edit
dnsmasq configuration: nano /etc/dnsmasq.conf Add a line with your
"virus domain for localhost"
address = / dev.me / 127.0.0.1 Specify the server for parsing unknown domains




server = 127.0.0.2




Restart the dnsmasq service /etc/init.d/dnsmasq restart Set up the system to use dnsmasq as a DNS server. nano /etc/resolv.conf




nameserver 127.0.0.1




New local subdomains are ready. ping dev.me, ping something.dev.me, ping another.domain.dev.me




  1. Using a PAC file
    (proxy auto-config), configure simultaneous use local and test
    networks in firefox, example, repeat steps 3-6.




Thank you in advance.







server kernel virtualbox firefox netcat






share|improve this question









New contributor




Roman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Roman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 3 hours ago









Sergiy Kolodyazhnyy

74.5k9155325




74.5k9155325






New contributor




Roman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 3 hours ago









RomanRoman

1




1




New contributor




Roman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Roman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Roman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • First of all, welcome to the site. Second, Ask Ubuntu answers questions related to Ubuntu OS, but we do not assist in doing homework or assignments ( at least without users showing what they've tried so far and what part is giving trouble ). Additionally, depending on university policy they may not be happy if you reveal the contents of the training material, so please beware of that. As for Clonezilla it is not related to netcat. You may want to find out your CPU architecture and download Clonezilla appropriate for your system first.

    – Sergiy Kolodyazhnyy
    3 hours ago











  • Possible off-topic question. Clonezilla is not Ubuntu, nor an official flavor of Ubuntu, thus off-topic on this site. Refer askubuntu.com/help/on-topic (I suspect you have a i686/x86 class cpu and tried to boot a x86_64 OS your machine cannot use. Lubuntu & Xubuntu still support x86/i686 class. with more flavors offering the option up to 18.04 LTS)

    – guiverc
    1 hour ago



















  • First of all, welcome to the site. Second, Ask Ubuntu answers questions related to Ubuntu OS, but we do not assist in doing homework or assignments ( at least without users showing what they've tried so far and what part is giving trouble ). Additionally, depending on university policy they may not be happy if you reveal the contents of the training material, so please beware of that. As for Clonezilla it is not related to netcat. You may want to find out your CPU architecture and download Clonezilla appropriate for your system first.

    – Sergiy Kolodyazhnyy
    3 hours ago











  • Possible off-topic question. Clonezilla is not Ubuntu, nor an official flavor of Ubuntu, thus off-topic on this site. Refer askubuntu.com/help/on-topic (I suspect you have a i686/x86 class cpu and tried to boot a x86_64 OS your machine cannot use. Lubuntu & Xubuntu still support x86/i686 class. with more flavors offering the option up to 18.04 LTS)

    – guiverc
    1 hour ago

















First of all, welcome to the site. Second, Ask Ubuntu answers questions related to Ubuntu OS, but we do not assist in doing homework or assignments ( at least without users showing what they've tried so far and what part is giving trouble ). Additionally, depending on university policy they may not be happy if you reveal the contents of the training material, so please beware of that. As for Clonezilla it is not related to netcat. You may want to find out your CPU architecture and download Clonezilla appropriate for your system first.

– Sergiy Kolodyazhnyy
3 hours ago





First of all, welcome to the site. Second, Ask Ubuntu answers questions related to Ubuntu OS, but we do not assist in doing homework or assignments ( at least without users showing what they've tried so far and what part is giving trouble ). Additionally, depending on university policy they may not be happy if you reveal the contents of the training material, so please beware of that. As for Clonezilla it is not related to netcat. You may want to find out your CPU architecture and download Clonezilla appropriate for your system first.

– Sergiy Kolodyazhnyy
3 hours ago













Possible off-topic question. Clonezilla is not Ubuntu, nor an official flavor of Ubuntu, thus off-topic on this site. Refer askubuntu.com/help/on-topic (I suspect you have a i686/x86 class cpu and tried to boot a x86_64 OS your machine cannot use. Lubuntu & Xubuntu still support x86/i686 class. with more flavors offering the option up to 18.04 LTS)

– guiverc
1 hour ago





Possible off-topic question. Clonezilla is not Ubuntu, nor an official flavor of Ubuntu, thus off-topic on this site. Refer askubuntu.com/help/on-topic (I suspect you have a i686/x86 class cpu and tried to boot a x86_64 OS your machine cannot use. Lubuntu & Xubuntu still support x86/i686 class. with more flavors offering the option up to 18.04 LTS)

– guiverc
1 hour ago










0






active

oldest

votes











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/3.0/"u003ecc by-sa 3.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
});


}
});






Roman is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1128357%2fworking-with-netcat%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








Roman is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















Roman is a new contributor. Be nice, and check out our Code of Conduct.













Roman is a new contributor. Be nice, and check out our Code of Conduct.












Roman is a new contributor. Be nice, and check out our Code of Conduct.
















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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1128357%2fworking-with-netcat%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

香粉寮

GameSpot