Author Topic: Custom homepage  (Read 4998 times)

0 Members and 15 Guests are viewing this topic.

Offline iTpHo3NiX

  • EZ's Pirate Captain
  • Administrator
  • Titan
  • *
  • Posts: 2920
  • Cookies: 328
    • View Profile
    • EvilZone
Re: Custom homepage
« Reply #15 on: November 14, 2012, 04:06:19 am »
SEXAY :P

Anybody with a simple scripting language with AutoIT, or python, wtf, I challenge you to make a "Create a Homepage" script that will generate a page by inputting various variables such as Title, Background, etc. and have it generate a homepage :P I'll give you +5 (will take a few hours as I can give +1/hr)
[09:27] (+lenoch) iTpHo3NiX can even manipulate me to suck dick
[09:27] (+lenoch) oh no that's voluntary
[09:27] (+lenoch) sorry

Offline lucid

  • #Underground
  • Titan
  • **
  • Posts: 2683
  • Cookies: 243
  • psychonaut
    • View Profile
Re: Custom homepage
« Reply #16 on: November 14, 2012, 04:09:40 am »
SEXAY :P

Anybody with a simple scripting language with AutoIT, or python, wtf, I challenge you to make a "Create a Homepage" script that will generate a page by inputting various variables such as Title, Background, etc. and have it generate a homepage :P I'll give you +5 (will take a few hours as I can give +1/hr)

Shouldn't this go in the coding challenge section?
"Hacking is at least as much about ideas as about computers and technology. We use our skills to open doors that should never have been shut. We open these doors not only for our own benefit but for the benefit of others, too." - Brian the Hacker

Quote
15:04  @Phage : I'm bored of Python

Offline Uriah

  • Sir
  • ***
  • Posts: 454
  • Cookies: 42
  • άξονας
    • View Profile
Re: Custom homepage
« Reply #17 on: November 14, 2012, 08:07:10 am »
SEXAY :P

Anybody with a simple scripting language with AutoIT, or python, wtf, I challenge you to make a "Create a Homepage" script that will generate a page by inputting various variables such as Title, Background, etc. and have it generate a homepage :P I'll give you +5 (will take a few hours as I can give +1/hr)
I think I'll take you up on that one Skid. Hopefully I'll have something by tomorrow night :D

Offline lucid

  • #Underground
  • Titan
  • **
  • Posts: 2683
  • Cookies: 243
  • psychonaut
    • View Profile
Re: Custom homepage
« Reply #18 on: November 14, 2012, 10:11:52 am »
Ok here's an updated version:

Code: (html) [Select]
<html>
<title>net.explore</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<body>
<center>
<p>The Network</p>
<br />
<form method="get" action="http://www.google.com/search">
<input onfocus="this.value=''" type="text"   name="q" size="45"
 maxlength="255" value="get lost in the net" />
<input type="submit" value="Explore" />
</center>
<div>
<a href = "http://www.evilzone.org">Evilzone</a>
<window.location = 'http://www.evilzone.org'>
<a href = "http://www.bitspyder.net">Bitspyder</a>
<window.location = 'http://www.bitspyder.net'>
<a href = "http://www.archlinux.org">Arch Linux</a>
<window.location = 'http://www.archlinux.org'>
<a href = "http://www.cryptome.org">Cryptome</a>
<window.location = 'http://www.cryptome.org'>
</div>
</form>
</body>
</html>

The css:

Code: (css) [Select]
p{
    color: white;
    font-size: 30px;
    font-family: neuropolitical;
}
div{
    text-indent: 33%;
    font-size: 95%;
    font-weight: bolder;
}
body{
    background: url(/path/to/my/pic.jpg);
    background-attachment: fixed;
    background-position: 100%;
}
a:link{
    color: black;
    text-decoration: none;
    background-color: gray;
    border: 2px solid black;
}
a:visited{
    color: black;
    text-decoration: none;
    background-color: gray;
    border: 2px solid black;
}
a:hover{
    color: black;
    text-decoration: none;
    background-color: white;
    border: 2px solid black;
}

But I need an opinion. Which looks better, this one:

http://i.imgur.com/z1ncH.png

Or this one:

http://i.imgur.com/5T2rc.jpg

So hard to decide.  :P
« Last Edit: November 14, 2012, 10:28:09 am by lucid »
"Hacking is at least as much about ideas as about computers and technology. We use our skills to open doors that should never have been shut. We open these doors not only for our own benefit but for the benefit of others, too." - Brian the Hacker

Quote
15:04  @Phage : I'm bored of Python

Offline proxx

  • Avatarception
  • Global Moderator
  • Titan
  • *
  • Posts: 2803
  • Cookies: 256
  • ФФФ
    • View Profile
Re: Custom homepage
« Reply #19 on: November 14, 2012, 10:50:57 am »
That first one is pretty cool :)
Archlinux!! :D
Wtf where you thinking with that signature? - Phage.
This was another little experiment *evillaughter - Proxx.
Evilception... - Phage

Offline Stackprotector

  • Administrator
  • Titan
  • *
  • Posts: 2515
  • Cookies: 205
    • View Profile
Re: Custom homepage
« Reply #20 on: November 14, 2012, 11:05:44 am »
First one is awesome :)
~Factionwars

Offline RedBullAddicted

  • VIP
  • Sir
  • *
  • Posts: 519
  • Cookies: 189
    • View Profile
Re: Custom homepage
« Reply #21 on: November 14, 2012, 02:09:43 pm »
Hi,

don't flame me :) Just made that in 15 min. at work during doing telephone support... Think this is the worst I have ever done. Guess other will do it much better .

Here ya go:

Code: (python) [Select]
import sys

values = sys.argv

def writeFile(location, text):
    try:
        output = open(location, 'a')
        for lines in text:
            output.writelines(lines)
        output.close()
    except IOError:
        print "can not open the file to write the output"

def valueFinder(value, values):
    pos = values.index(value)
    pos += 1
    var = values[pos]
    return var
       
if len(values) == 1:
    print 'usage: homepage.py -l "output location" -t "title" -s "stylesheet" -i "backgroundimage" -h "headline" -c "fontcolor headline" -p "headline font size 1-7" -v "searchvalue"'
    sys.exit()
   
if '-l' in values:
    value = '-l'
    location = valueFinder(value, values)
else:
    print 'Please specify a location for the output'
    sys.exit()

if '-t' in values:
    value = '-t'
    title = valueFinder(value, values)

if '-s' in values:
    value = '-s'
    stylesheet = valueFinder(value, values)
   
if '-i' in values:
    value = '-i'
    background = valueFinder(value, values)
   
if '-h' in values:
    value = '-h'
    headline = valueFinder(value, values)
   
if '-c' in values:
    value = '-c'
    fontcolor = valueFinder(value, values)
   
if '-p' in values:
    value = '-p'
    fontsize = valueFinder(value, values)
   
if '-v' in values:
    value = '-v'
    searchvalue = valueFinder(value, values)

text = '<html>\n'

try:
    if title is not None:
        text += '<title>'+title+'</title>\n'
except NameError:
    text += '<title>no title specified</title>\n'

try:
    if stylesheet is not None:
        text += '<link rel="stylesheet" type="text/css" href="'+stylesheet+'" />\n'
except NameError:
    text += '<link rel="stylesheet" type="text/css" href="style.css" />\n'

try:
    if background is not None:
        text += '<body background="'+background+'">\n<center>\n'
except NameError:
    text += '<body>\n<center>\n'

try:
    if fontcolor is not None:
        text += '<font color="'+fontcolor+'"'
except NameError:
    text += '<font'
   
try:
    if fontsize is not None:
        text += ' size="'+fontsize+'">'
except NameError:
    text += '>'
   
try:
    if headline is not None:
        text += headline
except NameError:
    text += 'The Network'

text += '</font>\n<br />\n<form method="get" action="http://www.google.com/search">\n<input onfocus="this.value=\'\'" type="text"  name="q" size="45" maxlength="255"'

try:
    if searchvalue is not None:
        text += 'value="'+searchvalue+'" />\n'
except NameError:
    text += 'value="get lost in the net" />\n'

text += '<input type="submit" value="Explore" />\n</center>\n<div>\n\n</div>\n</form>\n</body>\n</html>'

writeFile(location, text)

Example: (sadly on a windows host cause I am at work, no Eclipse with pydev... needed to do it in notepad)
C:\Python27>python.exe homepage.py -l "C:\test.html" -t "Custom Title" -s "stylesheet.css" -i "wallpaper-3.jpg" -h "Custom Headline" -c "white" -p "5" -v "searchvalue"

Cheers,
RBA
« Last Edit: November 14, 2012, 05:44:30 pm by RedBullAddicted »
Deep into that darkness peering, long I stood there, wondering, fearing, doubting, dreaming dreams no mortal ever dared to dream before. - Edgar Allan Poe

Offline iTpHo3NiX

  • EZ's Pirate Captain
  • Administrator
  • Titan
  • *
  • Posts: 2920
  • Cookies: 328
    • View Profile
    • EvilZone
[09:27] (+lenoch) iTpHo3NiX can even manipulate me to suck dick
[09:27] (+lenoch) oh no that's voluntary
[09:27] (+lenoch) sorry

Offline lucid

  • #Underground
  • Titan
  • **
  • Posts: 2683
  • Cookies: 243
  • psychonaut
    • View Profile
Re: Custom homepage
« Reply #23 on: November 14, 2012, 10:07:21 pm »
Haha I had a feeling you guys would like that one better.  :D
"Hacking is at least as much about ideas as about computers and technology. We use our skills to open doors that should never have been shut. We open these doors not only for our own benefit but for the benefit of others, too." - Brian the Hacker

Quote
15:04  @Phage : I'm bored of Python

Offline iTpHo3NiX

  • EZ's Pirate Captain
  • Administrator
  • Titan
  • *
  • Posts: 2920
  • Cookies: 328
    • View Profile
    • EvilZone
Re: Custom homepage
« Reply #24 on: November 14, 2012, 10:47:14 pm »
and cool RBA ill check it out when im on the comp ;-)
[09:27] (+lenoch) iTpHo3NiX can even manipulate me to suck dick
[09:27] (+lenoch) oh no that's voluntary
[09:27] (+lenoch) sorry

Offline lucid

  • #Underground
  • Titan
  • **
  • Posts: 2683
  • Cookies: 243
  • psychonaut
    • View Profile
Re: Custom homepage
« Reply #25 on: November 16, 2012, 03:30:12 am »
Ok, I'm not gonna keep doing this but it's so hard to decide by myself. So. I ask one more time, which looks better. The first one:

http://i.imgur.com/z1ncH.png

Or this one:


http://i.imgur.com/MbqrB.jpg
« Last Edit: November 16, 2012, 03:36:45 am by lucid »
"Hacking is at least as much about ideas as about computers and technology. We use our skills to open doors that should never have been shut. We open these doors not only for our own benefit but for the benefit of others, too." - Brian the Hacker

Quote
15:04  @Phage : I'm bored of Python

Offline Uriah

  • Sir
  • ***
  • Posts: 454
  • Cookies: 42
  • άξονας
    • View Profile
Re: Custom homepage
« Reply #26 on: November 16, 2012, 03:31:54 am »
Ok, I'm not gonna keep doing this but it's so hard to decide by myself. So. I ask one more time, which looks better. The first one:

http://i.imgur.com/z1ncH.png

Or this one:

http://i.imgur.com/XElrO.jpg
I say the first one again :D
Its looks really awesome.

Offline iTpHo3NiX

  • EZ's Pirate Captain
  • Administrator
  • Titan
  • *
  • Posts: 2920
  • Cookies: 328
    • View Profile
    • EvilZone
Re: Custom homepage
« Reply #27 on: November 16, 2012, 04:16:53 am »
I say the first one again :D
Its looks really awesome.

Double that ;)
[09:27] (+lenoch) iTpHo3NiX can even manipulate me to suck dick
[09:27] (+lenoch) oh no that's voluntary
[09:27] (+lenoch) sorry

Offline silenthunder

  • Royal Highness
  • ****
  • Posts: 700
  • Cookies: 23
  • Anpan.
    • View Profile
Re: Custom homepage
« Reply #28 on: November 16, 2012, 04:32:00 am »
I like the 2 city ones, but idk which one I like more, the city before I came to be or the aftermath of my destructive path..


"Hacking is a lifestyle, a specific mindset, and it really is a lot of work." - Daemon

"Just wanted to state that this is just wicked social engineering at its best." - proxx

Offline lucid

  • #Underground
  • Titan
  • **
  • Posts: 2683
  • Cookies: 243
  • psychonaut
    • View Profile
Re: Custom homepage
« Reply #29 on: November 16, 2012, 04:37:18 am »
Hehe I see you guys really like the dark city. Makes sense, this is Evilzone.

@silentthunder - yeah I kinda saw it that way as well. Maybe my user homepage will be the city and my root homepage will be the destroyed city....idk.
"Hacking is at least as much about ideas as about computers and technology. We use our skills to open doors that should never have been shut. We open these doors not only for our own benefit but for the benefit of others, too." - Brian the Hacker

Quote
15:04  @Phage : I'm bored of Python