1
Scripting Languages / Re: Split any URL into "host", "path", and "filename" variables (Python)
« on: April 21, 2013, 10:55:59 PM »
Thanks, I had to do lil modification but I was able to do it by also using basename() and dirname().
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
import string
import socket
import sys
import os
from subprocess import call
from urllib.parse import urlparse
# ******************************************
#
# (1) Test input arguments to program - correct number provided?
# Exit if the required URL is not provided.
# (2) Split URL into "host", "path", and "filename" variables.
# http://www.google.com/images/srpr/logo3w.png
# * host=www.google.com
# * path=/images/
# * file=test.png
# host=????
# path=????
# filename=????
# port=????
print("Preparing to download object from http://" + host + path + filename)
print()
parad0x; to sum this thread up.
It's not physically possible.
Yeah and as for scenario its fun to have something like this:
**************************Term-svr*******Clients*************
***********************************\*****/********************
************************************\***/*********************
WWW----------FW-----------------------------Switch------DC---------DB-svr*
**************\***********************\***********************
***************\***********************\**********************
****************\***********************Mail-svr**************
***************Web-svr on DMZ******************************
Isnt that ascii art
Coming from Rapid7 cause I had to talk to them about my project, and when I saw this I directly made the following association:
https://community.rapid7.com/docs/DOC-2196
Off-topic: In case you don't know, Rapid7 is the company that develops Metasploit and NeXpose, and I'm lucky enough to have the privilege of working in the same environment as them which means I go ask for advice and help like bunch of times Super chill guys tbh... at least the ones who work here.
Why not? If he's in the same LAN as the OP.
@paradox
In fact, of you're in the same LAN i.e. behind the same nat box, I'll say fire up ettercap and try getting some login creds for the ISP