Post: Custom Log In For Windows
09-29-2014, 10:18 PM #1
jagex
Gym leader
(adsbygoogle = window.adsbygoogle || []).push({}); To run this on startup either put it in the registry or in the startup folder

Features:
1. Set your own amount of attempts
2. Set if 2nd chances are given or not
3. Disables ALT+F4, Explorer, TaskManager, Common WebBrowsers

Made this for learning purposes

Before trying to run the application you must set the paths of the text files into the program via visual studios, it will not run without them because it fetches the information from the text files, well, unless you decide to hardcode them in lol.

Tested for Windows 7

Download: You must login or register to view this content.
Virus: You must login or register to view this content.
You must login or register to view this content.
Last edited by Budz ; 10-01-2014 at 03:40 AM.

The following user thanked jagex for this useful post:

Pichu
09-30-2014, 08:17 AM #2
Pichu
RIP PICHU.
It's 1am in the morning, didn't run the code but I wrote this up real quick and you might want to test it.

You must login or register to view this content.

You can handle processes much easier by using loops. Also, make use of the Const keyword. If you have values that you don't want changed, use it.

Read up on naming conventions too.

Also, try and limit so many files for streaming in this type of program. 1 file would be necessary.

1 line can be a hashed password
2nd line can be attempts
3rd line can be whether second chance has been given so:


*HASH*
2
0

3rd line |0 = false 1 = true|


-----------------

Here, wrote this up as a starter for you. You must login or register to view this content.

I'm tired as fuck but use it. I included two snippets that deal with forms and disabling the exit button or completely removing it.

OHHH YEA. Before I forget.

Username = username
Password = password
Password = password

All lowercase.
Last edited by Pichu ; 09-30-2014 at 08:44 AM.

The following 2 users say thank you to Pichu for this useful post:

K3-, Cien
09-30-2014, 03:23 PM #3
jagex
Gym leader
Ok thanks!
09-30-2014, 05:40 PM #4
jagex
Gym leader
Been fixing the code up, have no idea why I added that for loop lol xD
10-01-2014, 12:42 AM #5
Pichu
RIP PICHU.
Originally posted by jagex View Post
Been fixing the code up, have no idea why I added that for loop lol xD


Hey, PM me if you ever need code looked at. I try and check up on NGU when I remember. I'm trying to get into a habit of getting on Skype daily but I forget, :P

My advice, do project mapping. Map out what you need done and then write the code for it. Use Classes to clean up your code.
10-01-2014, 01:46 AM #6
jagex
Gym leader
Originally posted by Pichu View Post
Hey, PM me if you ever need code looked at. I try and check up on NGU when I remember. I'm trying to get into a habit of getting on Skype daily but I forget, :P

My advice, do project mapping. Map out what you need done and then write the code for it. Use Classes to clean up your code.


Ill keep that in mind to message you if I need help, thanks!

Maybe you can give me advice on this piece of code? How to improve it, make it more efficient, less lines of code

    
namespace Skype_Tool
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();

}
Skype mySkype = new Skype();
WebClient myWebclient = new WebClient();
decimal spamAmount;

string message = "Logged In As:" + " ";


private void btn_attachSkype_Click(object sender, EventArgs e)
{

Process[] p = Process.GetProcessesByName("Skype");
if (p.Length != 1)
{
MessageBox.Show("Skype Not Running!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
else
{
try
{
mySkype.Attach(mySkype.Protocol, true);
this.Text = message + mySkype.CurrentUser.FullName;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
loadContacts();
timer2.Start();
Tasks();
}

}

private void loadContacts()
{
foreach (User myFriends in mySkype.Friends)
{

cmb_Friends.Items.Add(myFriends.Handle);
}


}
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show("Make sure you are logged onto skype before clicking attach", "Help");
}

private void Form1_Load(object sender, EventArgs e)
{

}

private void btn_sendMSG_Click(object sender, EventArgs e)
{

try
{
spamAmount = Numeric.Value;
if (cmb_Friends.SelectedIndex != -1)
{
for (int i = 0; i < spamAmount; i++)
{
string friend = cmb_Friends.SelectedItem.ToString();
mySkype.SendMessage(friend, txtBox_message.Text);
}
}
else
{
MessageBox.Show("Select a friend first!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Stop);
}
}
catch (Exception)
{
txtBox_message.Text = "Empty Message or Spam Amount Detected";
}
}

private void btn_spamAll_Click(object sender, EventArgs e)
{
foreach(User myFriends in mySkype.Friends)
{
try
{
spamAmount = Numeric.Value;
for (int i = 0; i < spamAmount; i++)
{
if (myFriends.OnlineStatus == TOnlineStatus.olsOnline | myFriends.OnlineStatus == TOnlineStatus.olsDoNotDisturb | myFriends.OnlineStatus == TOnlineStatus.olsAway)
{

mySkype.SendMessage(myFriends.Handle, txtBox_message.Text);
}
}
}
catch (Exception)
{


}
}
}

private void txtBox_spamAmount_TextChanged(object sender, EventArgs e)
{

}

public void timer1_Tick(object sender, EventArgs e)
{
timer1.Interval = 200000;
cmb_Friends.Items.Clear();
loadContacts();



}
async Task Tasks()
{
await Task.Delay(200000);
timer1.Start();

}

private void btn_Exit_Click(object sender, EventArgs e)
{

this.Close();
}

private void Numeric_ValueChanged(object sender, EventArgs e)
{
Numeric.Maximum = 9999;
}

private void button1_Click_1(object sender, EventArgs e)
{
mySkype.CurrentUserProfile.FullName = "Fiend Busa";
}

private void timer2_Tick(object sender, EventArgs e)
{
timer1.Interval = 1000;
this.Text = message + mySkype.CurrentUser.FullName;
if (txtBox_DisplayName.Text != "")
{
mySkype.CurrentUserProfile.FullName = txtBox_DisplayName.Text;

}
if (txtBox_moodText.Text != "")
{
mySkype.CurrentUserProfile.MoodText = txtBox_moodText.Text;
}
if (txtBox_mobile.Text != "")
{
mySkype.CurrentUserProfile.PhoneMobile = txtBox_mobile.Text;
}
}




private void txtBox_DisplayName_TextChanged(object sender, EventArgs e)
{

}

private void txtBox_moodText_TextChanged(object sender, EventArgs e)
{

}

private void txtBox_birthday_KeyPress(object sender, KeyPressEventArgs e)
{
char ch = e.KeyChar;
if (!char.IsDigit(ch))
{
e.Handled = true;
MessageBox.Show("Numbers Only Please", "Error");
txtBox_mobile.Clear();
}
}


}
}




























Last edited by jagex ; 10-01-2014 at 03:08 AM.
10-01-2014, 03:40 AM #7
Budz
Former Staff
Originally posted by jagex View Post
To run this on startup either put it in the registry or in the startup folder

Features:
1. Set your own amount of attempts
2. Set if 2nd chances are given or not
3. Disables ALT+F4, Explorer, TaskManager, Common WebBrowsers

Made this for learning purposes

Before trying to run the application you must set the paths of the text files into the program via visual studios, it will not run without them because it fetches the information from the text files, well, unless you decide to hardcode them in lol.

Tested for Windows 7

Download: You must login or register to view this content.

You must login or register to view this content.


Please include a virus link next time for downloads. You must login or register to view this content.
10-01-2014, 03:50 AM #8
Pichu
RIP PICHU.
Originally posted by jagex View Post
Ill keep that in mind to message you if I need help, thanks!

Maybe you can give me advice on this piece of code? How to improve it, make it more efficient, less lines of code

    
namespace Skype_Tool
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();

}
Skype mySkype = new Skype();
WebClient myWebclient = new WebClient();
decimal spamAmount;

string message = "Logged In As:" + " ";


private void btn_attachSkype_Click(object sender, EventArgs e)
{

Process[] p = Process.GetProcessesByName("Skype");
if (p.Length != 1)
{
MessageBox.Show("Skype Not Running!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
else
{
try
{
mySkype.Attach(mySkype.Protocol, true);
this.Text = message + mySkype.CurrentUser.FullName;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
loadContacts();
timer2.Start();
Tasks();
}

}

private void loadContacts()
{
foreach (User myFriends in mySkype.Friends)
{

cmb_Friends.Items.Add(myFriends.Handle);
}


}
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show("Make sure you are logged onto skype before clicking attach", "Help");
}

private void Form1_Load(object sender, EventArgs e)
{

}

private void btn_sendMSG_Click(object sender, EventArgs e)
{

try
{
spamAmount = Numeric.Value;
if (cmb_Friends.SelectedIndex != -1)
{
for (int i = 0; i < spamAmount; i++)
{
string friend = cmb_Friends.SelectedItem.ToString();
mySkype.SendMessage(friend, txtBox_message.Text);
}
}
else
{
MessageBox.Show("Select a friend first!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Stop);
}
}
catch (Exception)
{
txtBox_message.Text = "Empty Message or Spam Amount Detected";
}
}

private void btn_spamAll_Click(object sender, EventArgs e)
{
foreach(User myFriends in mySkype.Friends)
{
try
{
spamAmount = Numeric.Value;
for (int i = 0; i < spamAmount; i++)
{
if (myFriends.OnlineStatus == TOnlineStatus.olsOnline | myFriends.OnlineStatus == TOnlineStatus.olsDoNotDisturb | myFriends.OnlineStatus == TOnlineStatus.olsAway)
{

mySkype.SendMessage(myFriends.Handle, txtBox_message.Text);
}
}
}
catch (Exception)
{


}
}
}

private void txtBox_spamAmount_TextChanged(object sender, EventArgs e)
{

}

public void timer1_Tick(object sender, EventArgs e)
{
timer1.Interval = 200000;
cmb_Friends.Items.Clear();
loadContacts();



}
async Task Tasks()
{
await Task.Delay(200000);
timer1.Start();

}

private void btn_Exit_Click(object sender, EventArgs e)
{

this.Close();
}

private void Numeric_ValueChanged(object sender, EventArgs e)
{
Numeric.Maximum = 9999;
}

private void button1_Click_1(object sender, EventArgs e)
{
mySkype.CurrentUserProfile.FullName = "Fiend Busa";
}

private void timer2_Tick(object sender, EventArgs e)
{
timer1.Interval = 1000;
this.Text = message + mySkype.CurrentUser.FullName;
if (txtBox_DisplayName.Text != "")
{
mySkype.CurrentUserProfile.FullName = txtBox_DisplayName.Text;

}
if (txtBox_moodText.Text != "")
{
mySkype.CurrentUserProfile.MoodText = txtBox_moodText.Text;
}
if (txtBox_mobile.Text != "")
{
mySkype.CurrentUserProfile.PhoneMobile = txtBox_mobile.Text;
}
}




private void txtBox_DisplayName_TextChanged(object sender, EventArgs e)
{

}

private void txtBox_moodText_TextChanged(object sender, EventArgs e)
{

}

private void txtBox_birthday_KeyPress(object sender, KeyPressEventArgs e)
{
char ch = e.KeyChar;
if (!char.IsDigit(ch))
{
e.Handled = true;
MessageBox.Show("Numbers Only Please", "Error");
txtBox_mobile.Clear();
}
}


}
}






























PM me project build. Easier to work that way. I'll likely give it a go tomorrow evening or thursday evening when I'm done with my homework.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo