how do I run this program?
Todd Millecam
tyggna at gmail.com
Thu Feb 26 02:12:44 MST 2015
to thread it out, change the ; before done to a &
It'd also be a good idea to only do 1000 pins at a time for that.
for i in `seq 1111 2111` ; do echo "password $i" | netcat server port & done
for i in `seq 2112 3112`; . . .
On Wed, Feb 25, 2015 at 11:30 PM, Michael Havens <bmike1 at gmail.com> wrote:
> I had to redirect the output of that script to a file I can manipulate
> later. I think I will have to sort the file and then run uniq on it as it
> will be 10000 lines (did I miss a zero?) minus one of:
>
> I am the pincode checker for user bandit25. Please enter the password for
> user bandit24 and the secret pincode on a single line, separated by a space.
> Wrong! Please enter the correct pincode. Try again.
> Exiting.
>
> Or else, the 'Wrong....' says 'Right....' on one line (or something like
> that) and I just need to search for an affirmation word
>
> :-)~MIKE~(-:
>
> On Wed, Feb 25, 2015 at 6:40 PM, Michael Havens <bmike1 at gmail.com> wrote:
>
>> the man pages never would have taught me that! I really need to learn to
>> program before I start the other wargames. that is just bash scripting?
>>
>> :-)~MIKE~(-:
>>
>> On Wed, Feb 25, 2015 at 10:48 AM, Todd Millecam <tyggna at gmail.com> wrote:
>>
>>> Your program is the wrong way to do this. For 1 mil + guesses, C is the
>>> right way to go, but for 10k you can just use a shell script:
>>>
>>> for i in `seq 1111 9999` ; do echo "password $i" | netcat server.com
>>> 30002 ; done
>>>
>>> Why do I feel like I'm helping you cheat?
>>>
>>> On Wed, Feb 25, 2015 at 10:26 AM, Michael Havens <bmike1 at gmail.com>
>>> wrote:
>>>
>>>> The instructions they give are:
>>>>
>>>> A daemon is listening on port 30002 and will give you the password for
>>>> bandit25 if given the password for bandit24 and a secret numeric 4-digit
>>>> pincode. There is no way to retrieve the pincode except by going through
>>>> all of the 10000 combinaties, called brute-forcing.
>>>>
>>>> I figure I'd netcat to the port a file with the bandit24's password and
>>>> the pincodes and .... I still have to investigate man more
>>>> :-)~MIKE~(-:
>>>>
>>>> On Wed, Feb 25, 2015 at 10:05 AM, Mark Phillips <
>>>> mark at phillipsmarketing.biz> wrote:
>>>>
>>>>> Mike,
>>>>>
>>>>> I don't think the program you found prints anything. What were the
>>>>> actual instructions from Bandit?
>>>>>
>>>>> Mark
>>>>>
>>>>> On Wed, Feb 25, 2015 at 8:22 AM, druid001 . <dtroyer1 at gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Can't help, but what a coincidence, I just started bandit last night!
>>>>>>
>>>>>> On Wed, Feb 25, 2015 at 1:51 AM, Michael Havens <bmike1 at gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> I need to get every four digit combination as part of the next
>>>>>>> challenge in bandit. I'm not a programmer so I googled for a solution.
>>>>>>> Please, how do I run this program?
>>>>>>>
>>>>>>> int main(int argc, char** argv){
>>>>>>> int a,b,c,d;
>>>>>>>
>>>>>>> for(a=1; a<5; a++){
>>>>>>> for(b=1; b<5; b++){
>>>>>>> for(c=1; c<5; c++){
>>>>>>> for(d=1; d<5; d++){
>>>>>>> if(!(a==b || a==c || a==d || b==c || b==d || c==d))
>>>>>>> printf("%d%d%d%d
>>>>>>> ",a,b,c,d);
>>>>>>> }
>>>>>>> }
>>>>>>> }
>>>>>>> }
>>>>>>>
>>>>>>> return 0;
>>>>>>> }
>>>>>>> :-)~MIKE~(-:
>>>>>>>
>>>>>>> ---------------------------------------------------
>>>>>>> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
>>>>>>> To subscribe, unsubscribe, or to change your mail settings:
>>>>>>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Love, sex, food, friendship, play, beauty and the simple pleasure of
>>>>>> a cold beer are all well and good, but never forget that the universe is
>>>>>> determined to kill you by whatever means necessary.
>>>>>>
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------
>>>>>> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
>>>>>> To subscribe, unsubscribe, or to change your mail settings:
>>>>>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------
>>>>> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
>>>>> To subscribe, unsubscribe, or to change your mail settings:
>>>>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------
>>>> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
>>>> To subscribe, unsubscribe, or to change your mail settings:
>>>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>>>
>>>
>>>
>>>
>>> --
>>> Todd Millecam
>>>
>>> ---------------------------------------------------
>>> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
>>> To subscribe, unsubscribe, or to change your mail settings:
>>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>>
>>
>>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
--
Todd Millecam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20150226/482bdbca/attachment.html>
More information about the PLUG-discuss
mailing list