Welcome to Ask A Pentester, where you can get your security questions answered by members of the IT Security community!

Spread the word!

SVN update via a web proxy?

+2 votes
Hello.

When on site pen testing you often have to use a web proxy to get internet access.

If you have forgotten to 'sharpen your tools' before arriving on site is there a way to 'svn update' using a web proxy?

I have tried edditing the '/Users/username/.subversion/servers' file however this didn't seem to do anything.

Thanks,

Ryan
asked 1 year ago in Tools by ethicalhack3r curious (180 points)

4 Answers

+2 votes
 
Best answer

If you are using Linux, you can put this in ~/.subversion/servers and it should work:

	[global]
http-proxy-host = proxyhost
http-proxy-port = proxyport
http-proxy-username = username
http-proxy-password = passwd

answered 1 year ago by fancy amateur (340 points)
Got it!

I was putting the credentials in [groups] rather than [global]. School boy error.

Thanks for the replys everyone! :)
+1 vote

Hi,

 

maybe as a "quick and dirty" solution (but effective) you could use a generic proxifier solution in order to force svn to use a proxy.

I would recommend tsocks. This basically hooks the socket calls and redirect them to the specified proxy.

$ tsocks svn up

Check the man page for tsocks.conf for more info.

The tool is pretty straightforward and this solution will work with any other software.

 

Hope this helps!

answered 1 year ago by Dr. House contributor (590 points)
+1 vote

i got another suggestion where you export the environmentvariable in the shell

export http_proxy="http://<user>:<password>@<proxynameOrIP>:<portnumber>"

concrete example

export http_proxy="http://ifight:fortheusers@192.168.1.23:3128"

if no auth is needed use the following sheme

export http_proxy="http://192.168.1.23:3128"

to have it persistent edit the profile-file and write it down there

/etc/profile:

or in

~/.profile

if you want it only for one spec user

after you typed export or wrote it down to a conf and sourced it via the source command you should be able to use all tools via that httpproxy. well at least that worked out fine for apt-get on backtrackday2010 where we only had internet via a http-proxy. ;)

answered 1 year ago by 5M7X enthusiast (350 points)
0 votes
You can setup your own rouge git or svn server inside a company/organization that has a pedantic firewall configuration by using chownat
answered 1 year ago by atdre pro pentester (1,080 points)

Please log in or register to answer this question.