script to generate random letters....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • qwe
    Confirmed User
    • Jul 2003
    • 2109

    #1

    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
  • woj
    <&(©¿©)&>
    • Jul 2002
    • 47882

    #2
    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

    Comment

    • woj
      <&(©¿©)&>
      • Jul 2002
      • 47882

      #3
      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

      Comment

      • keenan
        Registered User
        • Jan 2004
        • 54

        #4
        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

        Comment

        • GrouchyAdmin
          Now choke yourself!
          • Apr 2006
          • 12085

          #5
          That isn't really random, that's following a pattern.

          Comment

          • rowan
            Too lazy to set a custom title
            • Mar 2002
            • 17393

            #6
            *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

            Comment

            • SleazyDream
              I'm here for SPORT
              • Jul 2001
              • 41470

              #7
              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.

              Comment

              • keenan
                Registered User
                • Jan 2004
                • 54

                #8
                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.

                Originally posted by TheUmbra
                For optimization you will need to remove the excessive branching in Increment().
                http://www.bleepo.org

                Comment

                • k0nr4d
                  Confirmed User
                  • Aug 2006
                  • 9231

                  #9
                  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, 07:33 AM.
                  Mechanical Bunny Media
                  Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development

                  Comment

                  • SpyCam
                    PoiSEO.com
                    • Apr 2001
                    • 1201

                    #10
                    so, who's the winner?

                    Comment

                    • seeandsee
                      Check SIG!
                      • Mar 2006
                      • 50945

                      #11
                      wow php contest
                      BUY MY SIG - 50$/Year

                      Contact here

                      Comment

                      • keenan
                        Registered User
                        • Jan 2004
                        • 54

                        #12
                        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

                        Comment

                        • quantum-x
                          Confirmed User
                          • Feb 2002
                          • 6863

                          #13
                          Originally posted by k0nr4d
                          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
                          PrettyInCash.com - BoozedGFs.com - TeenGFs.com - JizzGFs.com- MilfUploads.com -

                          Comment

                          • Jakez
                            Confirmed User
                            • Jan 2004
                            • 5656

                            #14
                            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
                            dj
                            dk
                            dl
                            dm
                            dn
                            do
                            dp
                            dq
                            dr
                            ds
                            dt
                            du
                            dv
                            dw
                            dx
                            dy
                            dz
                            ea
                            eb
                            ec
                            ed
                            ee
                            ef
                            eg
                            eh
                            ei
                            ej
                            ek
                            el
                            em
                            en
                            eo
                            ep
                            eq
                            er
                            es
                            et
                            eu
                            ev
                            ew
                            ex
                            ey
                            ez
                            fa
                            fb
                            fc
                            fd
                            fe
                            ff
                            fg
                            fh
                            fi
                            fj
                            fk
                            fl
                            fm
                            fn
                            fo
                            fp
                            fq
                            fr
                            fs
                            ft
                            fu
                            fv
                            fw
                            fx
                            fy
                            fz
                            ga
                            gb
                            gc
                            gd
                            ge
                            gf
                            gg
                            gh
                            gi
                            gj
                            gk
                            gl
                            gm
                            gn
                            go
                            gp
                            gq
                            gr
                            gs
                            gt
                            gu
                            gv
                            gw
                            gx
                            gy
                            gz
                            ha
                            hb
                            hc
                            hd
                            he
                            hf
                            hg
                            hh
                            hi
                            hj
                            hk
                            hl
                            hm
                            hn
                            ho
                            hp
                            hq
                            hr
                            hs
                            ht
                            hu
                            hv
                            hw
                            hx
                            hy
                            hz
                            ia
                            ib
                            ic
                            id
                            ie
                            if
                            ig
                            ih
                            ii
                            ij
                            ik
                            il
                            im
                            in
                            io
                            ip
                            iq
                            ir
                            is
                            it
                            iu
                            iv
                            iw
                            ix
                            iy
                            iz
                            ja
                            jb
                            jc
                            jd
                            je
                            jf
                            jg
                            jh
                            ji
                            jj
                            jk
                            jl
                            jm
                            jn
                            jo
                            jp
                            jq
                            jr
                            js
                            jt
                            ju
                            jv
                            jw
                            jx
                            jy
                            jz
                            ka
                            kb
                            kc
                            kd
                            ke
                            kf
                            kg
                            kh
                            ki
                            kj
                            kk
                            kl
                            km
                            kn
                            ko
                            kp
                            kq
                            kr
                            ks
                            kt
                            ku
                            kv
                            kw
                            kx
                            ky
                            kz
                            la
                            lb
                            lc
                            ld
                            le
                            lf
                            lg
                            lh
                            li
                            lj
                            lk
                            ll
                            lm
                            ln
                            lo
                            lp
                            lq
                            lr
                            ls
                            lt
                            lu
                            lv
                            lw
                            lx
                            ly
                            lz
                            ma
                            mb
                            mc
                            md
                            me
                            mf
                            mg
                            mh
                            mi
                            mj
                            mk
                            ml
                            mm
                            mn
                            mo
                            mp
                            mq
                            mr
                            ms
                            mt
                            mu
                            mv
                            mw
                            mx
                            my
                            mz
                            na
                            nb
                            nc
                            nd
                            ne
                            nf
                            ng
                            nh
                            ni
                            nj
                            nk
                            nl
                            nm
                            nn
                            no
                            np
                            nq
                            nr
                            ns
                            nt
                            nu
                            nv
                            nw
                            nx
                            ny
                            nz
                            oa
                            ob
                            oc
                            od
                            oe
                            of
                            og
                            oh
                            oi
                            oj
                            ok
                            ol
                            om
                            on
                            oo
                            op
                            oq
                            or
                            os
                            ot
                            ou
                            ov
                            ow
                            ox
                            oy
                            oz
                            pa
                            pb
                            pc
                            pd
                            pe
                            pf
                            pg
                            ph
                            pi
                            pj
                            pk
                            pl
                            pm
                            pn
                            po
                            pp
                            pq
                            pr
                            ps
                            pt
                            pu
                            pv
                            pw
                            px
                            py
                            pz
                            qa
                            qb
                            qc
                            qd
                            qe
                            qf
                            qg
                            qh
                            qi
                            qj
                            qk
                            ql
                            qm
                            qn
                            qo
                            qp
                            qq
                            qr
                            qs
                            qt
                            qu
                            qv
                            qw
                            qx
                            qy
                            qz
                            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>";
                            }
                            ?>
                            Last edited by Jakez; 10-18-2009, 02:18 PM.
                            [email protected] - jakezdumb - 573689400

                            Killuminati

                            Comment

                            • fris
                              Too lazy to set a custom title
                              • Aug 2002
                              • 55679

                              #15
                              Originally posted by keenan
                              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.

                              Comment

                              • quantum-x
                                Confirmed User
                                • Feb 2002
                                • 6863

                                #16
                                Originally posted by Jakez
                                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.
                                PrettyInCash.com - BoozedGFs.com - TeenGFs.com - JizzGFs.com- MilfUploads.com -

                                Comment

                                • Robocrop
                                  Confirmed User
                                  • Aug 2008
                                  • 2785

                                  #17
                                  Originally posted by quantum-x
                                  Let me go on record to say: Never, ever hire this dude to code anything.
                                  Anything.

                                  Comment

                                  • aic1
                                    Registered User
                                    • Sep 2009
                                    • 42

                                    #18
                                    Originally posted by quantum-x
                                    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.

                                    Comment

                                    • quantum-x
                                      Confirmed User
                                      • Feb 2002
                                      • 6863

                                      #19
                                      Originally posted by aic1
                                      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, 05:41 PM.
                                      PrettyInCash.com - BoozedGFs.com - TeenGFs.com - JizzGFs.com- MilfUploads.com -

                                      Comment

                                      • Jakez
                                        Confirmed User
                                        • Jan 2004
                                        • 5656

                                        #20
                                        Originally posted by quantum-x
                                        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.
                                        Last edited by Jakez; 10-18-2009, 07:25 PM.
                                        [email protected] - jakezdumb - 573689400

                                        Killuminati

                                        Comment

                                        • keenan
                                          Registered User
                                          • Jan 2004
                                          • 54

                                          #21
                                          Originally posted by fris
                                          because visual stidio blows chunks
                                          http://www.bleepo.org

                                          Comment

                                          • woj
                                            <&(©¿©)&>
                                            • Jul 2002
                                            • 47882

                                            #22
                                            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

                                            Comment

                                            • d-null
                                              . . .
                                              • Apr 2007
                                              • 13724

                                              #23
                                              Originally posted by woj
                                              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??

                                              __________________

                                              Looking for a custom TUBE SCRIPT that supports massive traffic, load balancing, billing support, and h264 encoding? Hit up Konrad!
                                              Looking for designs for your websites or custom tubesite design? Hit up Zuzana Designs
                                              Check out the #1 WordPress SEO Plugin: CyberSEO Suite

                                              Comment

                                              • woj
                                                <&(©¿©)&>
                                                • Jul 2002
                                                • 47882

                                                #24
                                                Originally posted by d-null
                                                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

                                                Comment

                                                Working...