login batch app.. possible?
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.
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?
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!
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
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
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…
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.
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++…
-
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….
-
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…
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….
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.
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
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]
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..
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 <iostream>
#include <string>
#include <windows.h>
using namespace std;
int main()
{
char path[500];
GetCurrentDirectory(500,path);
std::string command;
start:
cout << path << ">";
getline( cin, command );
system(command.c_str());
goto start;
}