Question 4: Netcat - Kali Linux

Problem completing one of the interactive tutorials?

Moderator: drgrussell

Post Reply
4mj4d
Posts: 1
Joined: Sun Dec 04, 2016 8:39 pm
Are you a robot or a human?: Human

Question 4: Netcat - Kali Linux

Post by 4mj4d » Sun Dec 04, 2016 8:52 pm

I am having difficulty with the last test2 which is not passing I have tried different things but no luck yet.
Tests: Complete
Listener gives a count PASSED
Listener gives a count and continuous PASSED
Count seems right test1 PASSED
Count seems right test2 FAILED

1. Here is I have done I created file /root/script1 file which consists of the counts of the files in root
2. scr.sh

Code: Select all

#!/bin/bash
ls | wc -l > /root/counts
3. creating the serve

Code: Select all

netcat -l 127.0.0.1 -p 790 -e 'cat /root/script1' --continuous
4. connecting with the server

Code: Select all

netcat 127.0.0.1 790
Anything I am missing here?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest