MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides

Homepage Register FAQ Members Mark Forums Read Advertise Marketplace FPSowned


Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > Programming > Programming section > VB
Reload this Page [Guide] Password protect your programs
VB Discussions about VB programming

Reply
 
LinkBack Thread Tools
[Guide] Password protect your programs
(#1)
Old
warsheep is Offline
Contributor
Rep Power: 3
Reputation: 183
warsheep has a spectacular aura aboutwarsheep has a spectacular aura about
 
Posts: 1,144
Join Date: Sep 2006
[Guide] Password protect your programs - 07-03-2008

I'll get right down to the point:


Make your program, and make everything that needs to be hidden inside
a panel.


Then, create your password field. (Note that it MUST be outside the panel!)
Which is:
A textbox
A button

To make people unable to see what you write in the textbox,
double click a empty spot within your program, so you get to the
onload event. Write
TextBox1.UseSystemPasswordChar = True


Then, double click your button, and in the onclick event, write

If TextBox1.Text = ("Thepassword") Then
Panel1.Show()
Else
MsgBox("Error: Invalid password")
End If

This is almost to easy to explain, but,
when the button is clicked, the program will check if the text in the
textbox is Thepassword, and if it is, it will show panel1.
But, if the password is not correct, the else statement will be run.
the result of that will be a messagebox popping up.

There is only one problem left though!

The panel will show by default!

There are two ways to do this, either by going to the panels properties,
and change visible to false, or, by going to the on load event.

I'll cover the onload event, because that way you'll most likely
understand more.

Double click on a empty place within your program.
Simply write
panel1.hide()

When the program loads (Or, starts) it will hide panel1, and everything
within it.

What if you want to hide it all again?
Simple, create another button, feel free to do it inside the panel.
Double click on it, and write
panel1.hide

This will simply hide it all, so that you will have to reenter the password.


How to make the password key configurable
with this, I mean, making the user able to decide if the textbox
should censor whats written there or not.

Add 2 buttons somewhere close to the textbox, like over it.

The first one, lets make it set the text to be X'es.
The second, will remove the X'es, so everyone can see whats being
written there.

Double click the first one, and write
TextBox1.UseSystemPasswordChar = True

And for the second one, write
TextBox1.UseSystemPasswordChar = False


This tutorial covers the very basic of password protection, and only supports
a preset password, which I suspect can easely be changed using hex
editing. But it covers the basics, to get you started, and thats
normaly what a guide should do, get you started.

I hope I managed to express myself correctly, and I hope this little, basic
guide was to any help.


<ToXiCa> warsheep + denmark + VIP lounge + cheese = love <3
FOR A MOMENT, NOTHING HAPPENED. THEN, AFTER A SECOND OR SO, NOTHING CONTINUED TO HAPPEN.
Reply With Quote

Donate to remove ads.
(#2)
Old
Trippy000's Avatar
Trippy000 is Offline
Sergeant
Rep Power: 1
Reputation: 16
Trippy000 is on a distinguished road
 
Posts: 47
Join Date: May 2008
07-03-2008

Nice Tutorial, although not to useful in vb since its hella easy to de-compile vb these days unless you use a code scrambler but great guide anyway
Reply With Quote
(#3)
Old
Viter's Avatar
Viter is Offline
Member of The Month
Rep Power: 4
Reputation: 366
Viter is just really niceViter is just really niceViter is just really niceViter is just really nice
 
Posts: 1,492
Join Date: Aug 2007
Location: Denmark
07-03-2008

Nice tutorial +rep x3
woot 1337 post count for meh



Reply With Quote
(#4)
Old
EmiloZ's Avatar
EmiloZ is Offline
Flying Danish Leecher
Rep Power: 4
Reputation: 361
EmiloZ is just really niceEmiloZ is just really niceEmiloZ is just really niceEmiloZ is just really nice
 
Posts: 857
Join Date: Jun 2007
Location: Denmark - Europe
07-03-2008

Quote:
Originally Posted by Viter View Post
woot 1337 post count for meh
haha, GZ, now dont post any thing more



[Only registered and activated users can see links. ] so now im contributer will girls sleep with me?
[Only registered and activated users can see links. ] I'm tierd of searching for sex on MMOwned..
[Only registered and activated users can see links. ] I search for sex on MMOwned all the time.
Reply With Quote
(#5)
Old
Brutal Pink Panther's Avatar
Brutal Pink Panther is Offline
Master Sergeant
Rep Power: 1
Reputation: 6
Brutal Pink Panther is an unknown quantity at this point
 
Posts: 109
Join Date: Mar 2008
07-03-2008

add a text box more
go to the buttons code and input

if textbox1.text = "Something" and textbox2.text = "Somthing" then
..... i better like that one


but only if you want it to be a user or something
EDIT: lol i wrote wrong :P


C++ Scripter. Did you see ? :P

Last edited by Brutal Pink Panther; 07-04-2008 at 07:19 AM.
Reply With Quote
(#6)
Old
warsheep is Offline
Contributor
Rep Power: 3
Reputation: 183
warsheep has a spectacular aura aboutwarsheep has a spectacular aura about
 
Posts: 1,144
Join Date: Sep 2006
07-04-2008

Owned Emu, that doesn't make sense,
checking if the same textbox's text is the password?
You mean
if textbox1.text = ("Username") and textbox2.text = ("Password") then
or?
The problem with that appears when you try to do multiple users,
doing
if textbox1.text = ("Username1") and textbox2.text = ("Passwordforuser1")
success()
elseif textbox1.text = ("Username2") and textbox2.text = ("Passwordforuser2)
success()
else
msgbox("fail")

The problem is to check that its the correct password, for that user.
Of course, there are better ways I guess, but they often end up with more code
then what you needed in the first place.


<ToXiCa> warsheep + denmark + VIP lounge + cheese = love <3
FOR A MOMENT, NOTHING HAPPENED. THEN, AFTER A SECOND OR SO, NOTHING CONTINUED TO HAPPEN.
Reply With Quote
Reply

Donate to remove ads.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On




Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327