Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Java brute etc

Name: Anonymous 2007-07-29 14:38 ID:hgb5ar6O

     I need a Java application that will allow me to brute force in Java, if you have one, or can make one, it would be much appreciated.

Name: Anonymous 2007-07-29 16:06 ID:PG/964lE

Rape.java

Name: Anonymous 2007-07-29 16:13 ID:IaQmrbiU

>>2
import Java.rape

duh

Name: Anonymous 2007-07-29 16:52 ID:Heaven

>>brute force in Java

Name: Anonymous 2007-07-29 19:23 ID:Heaven

>>1
I brute forced your sister last night. She liked it. :)

Name: Anonymous 2007-07-29 20:01 ID:woA7arB8

>>1
Right, here's the Awesome Java Bruteforce (AJB):

public static void main() {
   int x = 10000;
   int guess;
   do {
      guess = new java.util.Random().nextInt();
   } while (guess * guess != x);
   System.out.println("Sqrt(" + x ") = " + guess);
}

Name: Anonymous 2007-07-29 20:03 ID:RK7yOfBX

>>6
what the fuck is do { } while ????

Name: Anonymous 2007-07-29 20:22 ID:Heaven

>>7
please please please be a troll.

Name: Anonymous 2007-07-29 20:26 ID:RK7yOfBX

>>8
find if you dont know ill ask on irc...

Name: Anonymous 2007-07-29 20:31 ID:Heaven

>>9
fine
fixed.

Now, on to your question

while and do are common loop keywords in programming languages.

difference:
while
while(FALSE) { printf("this part is ignored\n") }
do while

do { printf("this part is not ignored until the expression in while() is evaluated"); } while(FALSE);

Name: Anonymous 2007-07-29 20:35 ID:EUpoeF6k

>>10
DON'T HELP HIM. Let him die on the rocks of ignorance and thus the gene pool will be a bit more chlorinated.

Name: Anonymous 2007-07-29 21:08 ID:PG/964lE

>>6

Haha, lovely

Name: Anonymous 2007-07-29 21:33 ID:iKMuWfQT

>>9
Try out this code snippet in Java:

do
{
  System.out.print("DESU ");
} while (true);

Name: Anonymous 2007-07-29 22:00 ID:Heaven

>>10
GTFO helpfag

Name: Anonymous 2007-07-29 22:23 ID:yoKGOimB

>>7
you need to read K&R.
btw, I don't think I've seen a do/while or a while loop in a... ermm... while. Lotsa recursion makes my heart go happy.

Name: Anonymous 2007-07-29 23:05 ID:Zn2arYQH

ytf u want java.


import java.util.*;
 
class Hankx {
   public static void main(String [] arg) throws Exception {
      for(int i=1; i<=arg[0].length(); i++) {
         for(Iterator j = sCr(arg[0],i).iterator(); j.hasNext(); ) {
            Set s = allperm((String)j.next());
            for(Iterator k = s.iterator(); k.hasNext(); )
            System.out.println(k.next());
         }
      }
   }
 
   public static List sCr(String s,int r) {
      List result = new ArrayList();
 
      if(r>0 && s.length()>0 && r<=s.length()) {
         for(Iterator j = sCr(s.substring(1),r-1).iterator(); j.hasNext();)
         result.add(s.charAt(0) + (String) j.next());
         result.addAll(sCr(s.substring(1),r));
      }
 
      return r==0 ? Collections.singletonList("") : result;
   }
 
   public static Set allperm(String s) {
      Set result = new HashSet();
      for(int i=0; i<s.length(); i++)
      for(Iterator j = allperm(s.substring(0,i)+s.substring(i+1)).iterator(); j.hasNext();)
      result.add(s.charAt(i) + (String) j.next());
      return result.size()==0 ? Collections.singleton("") : result;
   }
}

If you can't figure that out, gtfo

Name: Anonymous 2010-11-13 12:38

Don't change these.
Name: Email:
Entire Thread Thread List