LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   tsocks show me an error about Malformed configuration (https://www.linuxquestions.org/questions/linux-software-2/tsocks-show-me-an-error-about-malformed-configuration-4175546559/)

hack3rcon 06-27-2015 03:21 AM

tsocks show me an error about Malformed configuration
 
Hello.
I configured "tsocks" for use "127.0.0.1" and port "8080" and want forward all my connection via tsocks into this address but show me below information :

[DATA] max 16 tasks per 1 server, overall 64 tasks, 8184548359848 login tries (l:1/p:8184548359848), ~7992723007 tries per task
[DATA] attacking service http-get on port 80
12:44:30 12:44:30 libtsockslibtsocks12:44:30 (10914)(10911)libtsocks: : (10913): Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
12:44:30 12:44:30 libtsockslibtsocks(10915)(10916): : Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
12:44:30 libtsocks(10912): Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
12:44:30 libtsocks(10918)12:44:30 : libtsocksMalformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
(10917): Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
12:44:30 libtsocks(10919): 12:44:30 libtsocksMalformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
(10920): Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
12:44:30 libtsocks(10921): Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
12:44:30 libtsocks(10923): Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
12:44:30 libtsocks(10922): Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
12:44:30 libtsocks(10924): 12:44:30 Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
libtsocks(10925): Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
12:44:30 libtsocks(10926): Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
12:45:02 libtsocks(10949): Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
12:45:02 libtsocks(10950): Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
12:45:02 libtsocks12:45:02 (10954)libtsocks: (10952): Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
12:45:02 libtsocks(10953): Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
12:45:02 libtsocks(10955): Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
12:45:02 libtsocks(10959): Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
12:45:02 libtsocks(10958): Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
12:45:02 libtsocks(10961): Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
12:45:02 12:45:02 libtsockslibtsocks(10960)(10963): : Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
12:45:02 libtsocks(10956)12:45:02 : libtsocksMalformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
(10962): Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
12:45:02 libtsocks(10964): Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"
12:45:02 12:45:02 libtsocks(10965): Malformed configuration pair on line 1 in configuration file, "\# This is the configuration for libtsocks (transparent socks)"


What is my problem?

unSpawn 06-27-2015 04:19 AM

Quote:

Originally Posted by hack3rcon (Post 5383601)
What is my problem?

Your problem is you haven't posted your configuration file details:
Code:

ITEM="/path/to/configuration file"; file "${ITEM}"; stat "${ITEM}"; nl -ba "${ITEM}"

hack3rcon 06-27-2015 06:01 AM

Configure is :

\# This is the configuration for libtsocks (transparent socks)
# Lines beginning with # and blank lines are ignored
#
# The basic idea is to specify:
# - Local subnets - Networks that can be accessed directly without
# assistance from a socks server
# - Paths - Paths are basically lists of networks and a socks server
# which can be used to reach these networks
# - Default server - A socks server which should be used to access
# networks for which no path is available
# Much more documentation than provided in these comments can be found in
# the man pages, tsocks(8) and tsocks.conf(8)

# Local networks
# For this example this machine can directly access 192.168.0.0/255.255.255.0
# (192.168.0.*) and 10.0.0.0/255.0.0.0 (10.*)

local = 192.168.0.0/255.255.255.0
local = 10.0.0.0/255.0.0.0

# Paths
# For this example this machine needs to access 150.0.0.0/255.255.0.0 as
# well as port 80 on the network 150.1.0.0/255.255.0.0 through
# the socks 5 server at 10.1.7.25 (if this machines hostname was
# "socks.hello.com" we could also specify that, unless --disable-hostnames
# was specified to ./configure).

path {
reaches = 150.0.0.0/255.255.0.0
reaches = 150.1.0.0:80/255.255.0.0
server = 10.1.7.25
server_type = 5
default_user = delius
default_pass = hello
}

# Default server
# For connections that aren't to the local subnets or to 150.0.0.0/255.255.0.0
# the server at 192.168.0.1 should be used (again, hostnames could be used
# too, see note above)

server = 127.0.0.1
# Server type defaults to 4 so we need to specify it as 5 for this one
server_type = 5
# The port defaults to 1080 but I've stated it here for clarity
server_port = 8888

unSpawn 06-29-2015 12:34 AM

You haven't posted what I asked for and the first two chars of this file clearly read "\#" instead of starting with just "#".

hack3rcon 06-29-2015 02:15 AM

Silly Question :). Sorry.

unSpawn 06-30-2015 11:32 AM

It is not a silly question and you do not have to apologize for asking questions.


All times are GMT -5. The time now is 03:09 AM.