Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-17-2009, 08:55 PM   #1
qwe
Confirmed User
 
Join Date: Jul 2003
Posts: 2,109
script to generate random letters....

can someone hook me up with a php script to generate patterns like this in .txt file:
aa
ab
ac
ad
ae
af
.
etc
.
ba
bb
bc
bd
.
etc
.
wa
wb
wc

thanks
qwe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-17-2009, 09:11 PM   #2
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
if you want to invest a few bucks, icq: 33375924
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-17-2009, 09:33 PM   #3
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
done
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-17-2009, 10:14 PM   #4
keenan
Registered User
 
Join Date: Jan 2004
Location: Canadia
Posts: 54
Code:
dim charCnt(1)

call allcombos "abc",3

sub allcombos charstr$,combolen
    redim charCnt(combolen)
    charstrlen=len(charstr$)
    for i=1 to charstrlen^combolen

        t$=""
        for k=combolen to 1 step -1
            t$=t$+mid$(charstr$,charCnt(k)+1,1)
        next k
        print t$

        charCnt(1)=charCnt(1)+1
        for k=1 to combolen
            if charCnt(k)=charstrlen then
                if k<combolen then charCnt(k+1)=charCnt(k+1)+1
                charCnt(k)=0
            end if
        next k

    next i
end sub
credits go to Kc, written in basic.
__________________
http://www.bleepo.org
keenan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-17-2009, 10:30 PM   #5
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
That isn't really random, that's following a pattern.
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-17-2009, 11:29 PM   #6
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,393
*nix "sh" script

Code:
for x in a b c d e f g h i j k l m n o p q r s t u v w x y z
do
  for y in a b c d e f g h i j k l m n o p q r s t u v w x y z
  do
    echo ${x}${y}
  done
done
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 01:48 AM   #7
SleazyDream
I'm here for SPORT
 
SleazyDream's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: Phone # (401) 285-0696
Posts: 41,470
should be easy to make for a programer
__________________
This dog, is dog, a dog, good dog, way dog, to dog, keep dog, an dog, idiot dog, busy dog, for dog, 20 dog, seconds dog!

Now read without the word dog.
SleazyDream is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 07:11 AM   #8
keenan
Registered User
 
Join Date: Jan 2004
Location: Canadia
Posts: 54
Code:
#include<stdio.h>

bool __cdecl Increment( char* lpToken, unsigned long dwLen )
{
	char* pStart = lpToken;
	lpToken = &lpToken[ dwLen ];
	
	do
	{
		switch ( ++lpToken[ 0 ] )
		{
		case 'Z'+1:
			lpToken[0] = 'a';
			return 1;
			break;
		case 'z'+1:
			lpToken[0] = '0';
			return 1;
			break;
		case '9'+1:
			lpToken[0] = 'A';
			break;
		default:
			return 1;
		}
		lpToken--;
	} while ( lpToken >= pStart );

	return 0;
}


int main( void )
{

	char szString[ 10 ];
	unsigned long dwLength = 1;
	*(unsigned short*)(szString) = 'A'; // unsigned short so we can copy the sz null.
	

	for ( unsigned long i = dwLength - 1; i < sizeof( szString ) -1; i++ )
	{
		do
		{
			printf( "%s\n", szString );
			//getchar( ); // uncomment to pause inc display.

		} while ( Increment( szString, dwLength -1 ) );
		*(unsigned short*)(szString+dwLength++) = 'A'; // ''
	}

	

	return 0;
}
credits to a helpful guy at another forum.

Quote:
Originally Posted by TheUmbra
For optimization you will need to remove the excessive branching in Increment().
__________________
http://www.bleepo.org
keenan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 08:31 AM   #9
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
PHP Code:
$array = array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z');
shuffle($array);
$string $array[0].$array[1]; 
edit: nevermind, seems you wanted a pattern like that not random. didn't read properly

Last edited by k0nr4d; 10-18-2009 at 08:33 AM..
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 09:08 AM   #10
SpyCam
PoiSEO.com
 
SpyCam's Avatar
 
Industry Role:
Join Date: Apr 2001
Location: PoiSEO.com
Posts: 1,201
so, who's the winner?
SpyCam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 09:11 AM   #11
seeandsee
Check SIG!
 
seeandsee's Avatar
 
Industry Role:
Join Date: Mar 2006
Location: Europe (Skype: gojkoas)
Posts: 50,945
wow php contest
__________________
BUY MY SIG - 50$/Year

Contact here
seeandsee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 09:20 AM   #12
keenan
Registered User
 
Join Date: Jan 2004
Location: Canadia
Posts: 54
Why you would want a php script to do this I don't know. Just open up visual studio and run one of the sources I posted. Bam you've got a word list suitable for brute force.
__________________
http://www.bleepo.org
keenan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 09:29 AM   #13
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Quote:
Originally Posted by k0nr4d View Post
PHP Code:
$array = array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z');
shuffle($array);
$string $array[0].$array[1]; 
edit: nevermind, seems you wanted a pattern like that not random. didn't read properly

Psst - http://fr.php.net/range
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 03:16 PM   #14
Jakez
Confirmed User
 
Jakez's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
aa
ab
ac
ad
ae
af
ag
ah
ai
aj
ak
al
am
an
ao
ap
aq
ar
as
at
au
av
aw
ax
ay
az
ba
bb
bc
bd
be
bf
bg
bh
bi
bj
bk
bl
bm
bn
bo
bp
bq
br
bs
bt
bu
bv
bw
bx
by
bz
ca
cb
cc
cd
ce
cf
cg
ch
ci
cj
ck
cl
cm
cn
co
cp
cq
cr
cs
ct
cu
cv
cw
cx
cy
cz
da
db
dc
dd
de
df
dg
dh
di
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ra
rb
rc
rd
re
rf
rg
rh
ri
rj
rk
rl
rm
rn
ro
rp
rq
rr
rs
rt
ru
rv
rw
rx
ry
rz
sa
sb
sc
sd
se
sf
sg
sh
si
sj
sk
sl
sm
sn
so
sp
sq
sr
ss
st
su
sv
sw
sx
sy
sz
ta
tb
tc
td
te
tf
tg
th
ti
tj
tk
tl
tm
tn
to
tp
tq
tr
ts
tt
tu
tv
tw
tx
ty
tz
ua
ub
uc
ud
ue
uf
ug
uh
ui
uj
uk
ul
um
un
uo
up
uq
ur
us
ut
uu
uv
uw
ux
uy
uz
va
vb
vc
vd
ve
vf
vg
vh
vi
vj
vk
vl
vm
vn
vo
vp
vq
vr
vs
vt
vu
vv
vw
vx
vy
vz
wa
wb
wc
wd
we
wf
wg
wh
wi
wj
wk
wl
wm
wn
wo
wp
wq
wr
ws
wt
wu
wv
ww
wx
wy
wz
xa
xb
xc
xd
xe
xf
xg
xh
xi
xj
xk
xl
xm
xn
xo
xp
xq
xr
xs
xt
xu
xv
xw
xx
xy
xz
ya
yb
yc
yd
ye
yf
yg
yh
yi
yj
yk
yl
ym
yn
yo
yp
yq
yr
ys
yt
yu
yv
yw
yx
yy
yz
za
zb
zc
zd
ze
zf
zg
zh
zi
zj
zk
zl
zm
zn
zo
zp
zq
zr
zs
zt
zu
zv
zw
zx
zy
zz

I know there's an easier way of doing this but I like to do stuff a weird/hard way rofl.
<?php
$arr="a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z";
$arr_ex=explode("/",$arr);
for($i=0;$i<count($arr_ex)*2;$i++)
{
if($arr[$i]=="/"){continue;}
print "$arr[$i]a<br>";
print "$arr[$i]b<br>";
print "$arr[$i]c<br>";
print "$arr[$i]d<br>";
print "$arr[$i]e<br>";
print "$arr[$i]f<br>";
print "$arr[$i]g<br>";
print "$arr[$i]h<br>";
print "$arr[$i]i<br>";
print "$arr[$i]j<br>";
print "$arr[$i]k<br>";
print "$arr[$i]l<br>";
print "$arr[$i]m<br>";
print "$arr[$i]n<br>";
print "$arr[$i]o<br>";
print "$arr[$i]p<br>";
print "$arr[$i]q<br>";
print "$arr[$i]r<br>";
print "$arr[$i]s<br>";
print "$arr[$i]t<br>";
print "$arr[$i]u<br>";
print "$arr[$i]v<br>";
print "$arr[$i]w<br>";
print "$arr[$i]x<br>";
print "$arr[$i]y<br>";
print "$arr[$i]z<br>";
}
?>
__________________
[email protected] - jakezdumb - 573689400

Killuminati

Last edited by Jakez; 10-18-2009 at 03:18 PM..
Jakez is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 03:42 PM   #15
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
Quote:
Originally Posted by keenan View Post
Why you would want a php script to do this I don't know. Just open up visual studio and run one of the sources I posted. Bam you've got a word list suitable for brute force.
because visual stidio blows chunks
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 03:44 PM   #16
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Quote:
Originally Posted by Jakez View Post
I know there's an easier way of doing this but I like to do stuff a weird/hard way rofl.
<?php
$arr="a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z";
$arr_ex=explode("/",$arr);
for($i=0;$i<count($arr_ex)*2;$i++)
{
if($arr[$i]=="/"){continue;}
print "$arr[$i]a<br>";
print "$arr[$i]b<br>";
print "$arr[$i]c<br>";
print "$arr[$i]d<br>";
print "$arr[$i]e<br>";
print "$arr[$i]f<br>";
print "$arr[$i]g<br>";
print "$arr[$i]h<br>";
print "$arr[$i]i<br>";
print "$arr[$i]j<br>";
print "$arr[$i]k<br>";
print "$arr[$i]l<br>";
print "$arr[$i]m<br>";
print "$arr[$i]n<br>";
print "$arr[$i]o<br>";
print "$arr[$i]p<br>";
print "$arr[$i]q<br>";
print "$arr[$i]r<br>";
print "$arr[$i]s<br>";
print "$arr[$i]t<br>";
print "$arr[$i]u<br>";
print "$arr[$i]v<br>";
print "$arr[$i]w<br>";
print "$arr[$i]x<br>";
print "$arr[$i]y<br>";
print "$arr[$i]z<br>";
}
?>
Let me go on record to say: Never, ever hire this dude to code anything.
Anything.
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 04:05 PM   #17
Robocrop
Confirmed User
 
Robocrop's Avatar
 
Industry Role:
Join Date: Aug 2008
Location: Hollywood
Posts: 2,785
Quote:
Originally Posted by quantum-x View Post
Let me go on record to say: Never, ever hire this dude to code anything.
Anything.
Robocrop is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 04:19 PM   #18
aic1
Registered User
 
aic1's Avatar
 
Join Date: Sep 2009
Posts: 42
Quote:
Originally Posted by quantum-x View Post
Let me go on record to say: Never, ever hire this dude to code anything.
Anything.
I would hire the guy any time. I prefer a guy that can give me a quick and stable solution, than one that gives me a solution in 4 lines of code, with bugs, and his head up his ass.
aic1 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 06:38 PM   #19
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Quote:
Originally Posted by aic1 View Post
I would hire the guy any time. I prefer a guy that can give me a quick and stable solution, than one that gives me a solution in 4 lines of code, with bugs, and his head up his ass.
Hire away.

BTW, here's your smart-arse 4 line solution - done in 1 line!

<? foreach(range('a','z') as $v) foreach(range('a','z') as $k) echo $v.$k."<br />" ?>

Last edited by quantum-x; 10-18-2009 at 06:41 PM..
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 08:24 PM   #20
Jakez
Confirmed User
 
Jakez's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
Quote:
Originally Posted by quantum-x View Post
Let me go on record to say: Never, ever hire this dude to code anything.
Anything.
Hahaha, I had a brain fart. I would never leave something like that for money (not that I am for hire anyway), it actually has a bug but I didn't feel like fixing it, hopefully he just wanted the list and not an actual code.
__________________
[email protected] - jakezdumb - 573689400

Killuminati

Last edited by Jakez; 10-18-2009 at 08:25 PM..
Jakez is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 09:59 PM   #21
keenan
Registered User
 
Join Date: Jan 2004
Location: Canadia
Posts: 54
Quote:
Originally Posted by fris View Post
because visual stidio blows chunks
__________________
http://www.bleepo.org
keenan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 10:09 PM   #22
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
problem was taken care of 24 hours ago, wtf guys?
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 10:16 PM   #23
d-null
. . .
 
d-null's Avatar
 
Industry Role:
Join Date: Apr 2007
Location: NY
Posts: 13,724
Quote:
Originally Posted by woj View Post
problem was taken care of 24 hours ago, wtf guys?
so did the op want "random" letters like he asks in the thread title or "patterned" letters like he asks in the first post??
d-null is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 10:17 PM   #24
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
Quote:
Originally Posted by d-null View Post
so did the op want "random" letters like he asks in the thread title or "patterned" letters like he asks in the first post??
"patterned"...
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.