Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

login batch app.. possible?


ghost's Avatar
0 0

Hey. for my network i was thinking about disableing the command prompt. now i know how easy it is to type command.com in a new text document and save as a batch file. but i was scheming and wondering is batch able to run a login script. i know it wouldnt look anything like this but this is what i am talking about:

Login:root
Password:toor```
Remember thats just an example. if not, im guessing theres not, would I be able to merge a login script into the command prompt batch application? Or is there even another way to make it so you need to login to the command prompt.

SET's Avatar

SET

Peumonoultramicroscopicsilico
0 0

What are u asking….I think i got lost


yours31f's Avatar
Retired
10 0

he wanted to block cmd. Now he sees how easy it is to get past it. Wants to know if you can password protect cmd.


ghost's Avatar
0 0

in a nut shell. i want to make the command prompt so you have to login to use it. by disableing the command prompt in regestry editor and using batch to make a new one. and then if possiable code a login script to that new batch command prompt. possiable? or is it possiable to merge it with a login script?


SET's Avatar

SET

Peumonoultramicroscopicsilico
0 0

Hmmm yes it is possable. Login script i doudt u would want in a batch file. U probably want in a .exe file.

It would be hard to do but it is very possable.


ghost's Avatar
0 0

well say i do want it in a batch file. im not really worried about peple getting past it. well…. actually.. exe is mad safer. with the understanding that the login and password would both be in the batch source. so if i wanted to take the cmd and covert it into a exe… i can prolly find a batch to exe program somewhere. then when it is an exe what language would i code a login script in? or could i find one compatable with an exe file? i was honestly hoping for a display as in an ftp. for example when you ftp and connect it can say login and password. thats what i want this to look. command prompt opens and says "login", "password". and if incorrect, exit. if good… well nice!


spyware's Avatar
Banned
0 0

If someone wanted to find, say, a thread full of people who have knowledge about the topics they are attempting to discuss, they shouldn't be looking here.

All I'm saying is, all of you guys are crazy, and all I can do is stare, sadden, and haste my way into the night.


ghost's Avatar
0 0

Wow, thanks. great help.


ghost's Avatar
0 0

SET, you have no clue what the heck you're talking about, and learn to spell…

Just use a batch to .exe converter in that case but not the point.

If anything you need to learn an actual programming language to watch for the processes and pop up a password box for it, if it's wrong kill the process. Just a sketchy idea, I'll be honest and say I've never tried anything like that before


ghost's Avatar
0 0

ooo. i like that idea lemur. thanks im gonna look into. i need to get on c++ to. its such a giant headach and i cant seem to remember anything. but i gotta do what i gotta do. for anyone else who has information that could help, be my guest.


spyware's Avatar
Banned
0 0

May I advise you to begin your quest with a search, you just need to find a clue! Obviously, you don't have a clue yet and you probably need one to do what you want to do.

Where this clue hides, you ask? I'm afraid I have no clue.


ghost's Avatar
0 0

Right now im looking on how to script a process watcher. From there, haha. Will see. Your right I dont have a clue, but im not playing blues clues so I think I can manage. Well.. Yeah, I think I can.


SET's Avatar

SET

Peumonoultramicroscopicsilico
0 0

Lemur….I have a great deal of knowledge of what i am talking about. I said its possible. Also Where did i not make since. I said it CAN be done but its hard.

Why not make it a batch. Because Batch doesn't support Secure String……

Why use secure string Because a normal string will be copied and moved in memory several times non encrypted. While secure string on the other hand will no be moved or copied through out memory while also staying encrypted.

Lemur ur a moron and obviously you have no idea what ur talking about


ghost's Avatar
0 0

Learn to spell and I could easily say the same, you thought it was difficult to convert a batch to exe, I know for a fact that a secured login isn't possible with batch and I know what I'm talking about, vastly more so than you do SET…

Of course it is possible with coding, that should be obvious. Difficulty? That's not your call either, I'm willing to bet such a thing wouldn't be nearly as hard with some research into the matter of process blocking, programs such as norton and spybot do it defaultly

You make no sense yourself because I have to sit there and look through your posts because of all your bloody typos, and the fact you try and type by apparently smashing your face int the keyboard.

Learn how to spell and leave shorthand in chat rooms…


SET's Avatar

SET

Peumonoultramicroscopicsilico
0 0

Lemur i never said hard to covert batch to exe.

Processes blocking is easy. But i am saying for him its hard. Not that for me its hard. I could code it NP.

And since all u have against me is typing errors….

P.s. Lemur i will code u around the block


ghost's Avatar
0 0

You could code it no problem.. Well what is your take on maybe making a tutorial or a walkthrough? Or is that not your thing?


SET's Avatar

SET

Peumonoultramicroscopicsilico
0 0

Well i code in a language most ppl here hate. VB.net

I always suggest it to people that plan to stick with windows.

U can download the express version free from Microsoft

Or torrent the pro version

Anyway your first step before i can help walk you through it is learning the very basics of programing. Once you learn the very basics Then i can walk you through it.


ghost's Avatar
0 0

All right my man. Im good to go. I have had it for some time now. And I know such, very little of VB, but I kinda understand the framework and what not. If not, I still have a VB 2005 book I can always review.


SET's Avatar

SET

Peumonoultramicroscopicsilico
0 0

goto ARCSET.com scroll to bottom of page and click on Chat With


ghost's Avatar
0 0

Done.


ghost's Avatar
0 0

this sounds fairly easy witch or any language that can run file… based on my understanding… i know it can be done no problem with C++…

  1. go to "C:\Windows\System32" rename "cmd.exe" with some other wierd name that unlikely to think of…. such as "hello world.exe" or whatever in any other location….

  2. just make a simple or encrypted authentication program that runs "hello world.exe", an exe that we just changed name, on correct authentication. and exit when information is incorrect… have our program name "cmd.exe" and save it under "C:\Windows\System32" problem solved….

not sure if this will run batch files correctly….

i think it will….

then again i'm really tired and cant think clearly right now…


ghost's Avatar
0 0

or you could just utilize "system("…")" command in C++….

then your program can completely independent to "cmd.exe"… I think you may able to delete it… and still run command in such fashion if you code it to fetch back the result…

then again i'm not sure if this will work or not… and I can't think right now…

need sleep, beer, and cheetos….. :ninja:

i'm sure i can help you out if you need me to when i can think clearly….


ghost's Avatar
0 0

SET wrote: Lemur i never said hard to covert batch to exe.

Processes blocking is easy. But i am saying for him its hard. Not that for me its hard. I could code it NP.

And since all u have against me is typing errors….

P.s. Lemur i will code u around the block

Then prove it. I've said multiple times put up or shut up, and so far you haven't put up a thing. You can deny that all you want but you haven't contributed anything but bad advice around here. No programs, no code, nothing. So all we have that you're a "good coder" is your word which is less than convincing

And I'm just saying any moron can type like that, have some dignity and type right.


richohealey's Avatar
Python Ninja
0 0

goddammit you all suck.

It's called a shell.

There are heaps of them, yes you can code it in batch, but that's just stupid.

I've coded a few, they're not too hard if you think for a while before you start


SET's Avatar

SET

Peumonoultramicroscopicsilico
0 0

Lemur i am helping. I was helping him last night. I Teach people how to do things. I dont code everything for them. Coding is a art. We al have are diffrent ways of doing it. Some graceful some spastic. To put up code to a person that doesnt know how to code himself other then batch is like speaking chinese to a guy that only knows english. There is a time and a place for code….this isnt one of them


ghost's Avatar
0 0

Yeah Lemur he is // was helping. Idk why you had to start shit. And spyware… That was a great help thank you …:o Okay well… Stop fucking arguing. It is pointless and makes you look like you want to be top dog…. whichh… makess…. you… bottom dogg. Get it, got it, good! :happy:


ghost's Avatar
0 0

yeah dude, just block up cmd with regedit, and make a quick shell in c++, just like

c++

include string string user string pass string cmd

cin<<user cin<<pass

check

while (true){ cin<<cmd system(cmd) }

it shouldnt be that complicated. i realize this isnt secure as far as pushing the user/pass into the registers, but as long as it is being run in your labs and whatnot, it doesnt seem like people are going to be trying to crack it. i have no experience with making .exe's secure as far as text goes, but im sure you will be able to figure it out if you want to.

[edit] ahhh i get it spyware, you rock my world :D [/edit]


eXXon's Avatar
Member
0 0

DigitalFire wrote: include string string user string pass string cmd

cin<<user cin<<pass

check

while (true){ cin<<cmd system(cmd) }

The problem I've found with most of these "shell clones" is that it only takes certain commands. it wont change directories or anything. But I'm pretty sure what alka said sounds right i think.. I'll try it out though..


ghost's Avatar
0 0

eXXon wrote: [quote]DigitalFire wrote: include string string user string pass string cmd

cin<<user cin<<pass

check

while (true){ cin<<cmd system(cmd) }

The problem I've found with most of these "shell clones" is that it only takes certain commands. it wont change directories or anything. But I'm pretty sure what alka said sounds right i think.. I'll try it out though..[/quote]

BS mine works with any command, and handles strings as perfectly as any shell.

#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;windows.h&gt;
using namespace std;
int main()
{
    char path[500];
    GetCurrentDirectory(500,path);
    std::string command;
    start:
    cout &lt;&lt; path &lt;&lt; &quot;&gt;&quot;;
    getline( cin, command );
    system(command.c_str());
    goto start;
}

eXXon's Avatar
Member
0 0

ok I just tried that and tried just changing directory and it didnt work..


ghost's Avatar
0 0

eXXon wrote: ok I just tried that and tried just changing directory and it didnt work..

Ahhh ur right, I see the problem. It's because cout << path << ">"; is under start:. Never noticed that, but I've never really had any need to rigorously use it :p. Ha.

Should be a pretty easy fix though.