PaulDotCom mailing list archives
Re: Not scanning production
From: David3 <netevil () hackers it>
Date: Wed, 31 Oct 2012 18:04:07 +0100
Yes in one line would be great :) I'm trying it right now but sed accept i and not -i, and doesn't recognize the parameter to replace ... When works I write it on the my wall Sent from my mobile On 31/ott/2012, at 17:38, James Condron <james () zero-internet org uk> wrote:
Something like: find /www/vhosts/www.example.com -type f -exec sed -i 's/old\.example\.com/new\.exampl\.cond/g' {} \; No? On Wed, Oct 31, 2012 at 4:31 PM, David3 <netevil () hackers it> wrote:I don't know if it's the best solution, I would copy the whole folder and do a deep replace in files with localhost to be quick. Sent from my mobile On 31/ott/2012, at 17:15, Patrick Laverty <patrick_laverty () brown edu> wrote:Ok, newbie here... I was asked to scan a web site that we were told is vulnerable. So I'm copying the site over to my Dev server and each time I manually click on links, I see it sends my request to production. I went through the .htaccess file and changed everything to point to my Dev server. It still goes to prod. I dig in a little further and sure enough, most of the links in the hundreds of pages are hardcoded to the prod site. What's the safest way to get around this? Set the /etc/hosts file on my scanning machine to point to my Dev server? I want to make 100% sure that my scan never hits the production server. Suggestions? Thank you. _______________________________________________ Pauldotcom mailing list Pauldotcom () mail pauldotcom com http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom Main Web Site: http://pauldotcom.com_______________________________________________ Pauldotcom mailing list Pauldotcom () mail pauldotcom com http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom Main Web Site: http://pauldotcom.com_______________________________________________ Pauldotcom mailing list Pauldotcom () mail pauldotcom com http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom Main Web Site: http://pauldotcom.com
_______________________________________________ Pauldotcom mailing list Pauldotcom () mail pauldotcom com http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom Main Web Site: http://pauldotcom.com
Current thread:
- Not scanning production Patrick Laverty (Oct 31)
- Re: Not scanning production Ron Gula (Oct 31)
- Re: Not scanning production Arch Angel (Oct 31)
- Re: Not scanning production Barry Von Ahsen (Oct 31)
- Re: Not scanning production Bacon Zombie (Oct 31)
- Re: Not scanning production Conrad Constantine (Oct 31)
- Re: Not scanning production Arch Angel (Oct 31)
- Re: Not scanning production Barry Von Ahsen (Oct 31)
- Re: Not scanning production James Condron (Oct 31)
- Re: Not scanning production David3 (Oct 31)
- Re: Not scanning production Frisch, Daniel (JUS) (Oct 31)
- Re: Not scanning production Nick Drage (Oct 31)