|
![]() |
|
Welcome to the GSM-Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Register | FAQ | Donate | Forum Rules | ★. iPhone Unlock .★ | -= JTAG BOOM =- | .: Nokia Unlock :. | Search | Today's Posts | Mark Forums Read |
| GSM Programming & Reverse Engineering Here you can post all Kind of GSM Programming and Reverse Engineering tools and Secrets. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Freak Poster ![]() ![]() ![]() ![]() Join Date: Mar 2009 Location: Unlocking SL3 Without BF
Posts: 232
Member: 984268 Status: Offline Thanks: 32
Thanked 150 Times in 58 Posts
| Iphone Warranty,Lock Status and Carrier info [DELPHI] Hi i was bored and checking this thread: how to get iphone waranty & lock state from apple? and decided to make a fast parser and release the code here Credits go to angel25dzCode: Uses WinInet, StrUtils; Code:
function GetUrlContent(const Url: string): string;
var
NetHandle: HINTERNET;
UrlHandle: HINTERNET;
Buffer: array[0..1024] of Char;
BytesRead: dWord;
begin
Result := '';
NetHandle := InternetOpen('Delphi 5.x', INTERNET_OPEN_TYPE_PRECONFIG, nil, nil, 0);
if Assigned(NetHandle) then
begin
UrlHandle := InternetOpenUrl(NetHandle, PChar(Url), nil, 0, INTERNET_FLAG_RELOAD, 0);
if Assigned(UrlHandle) then
{ UrlHandle valid? Proceed with download }
begin
FillChar(Buffer, SizeOf(Buffer), 0);
repeat
Result := Result + Buffer;
FillChar(Buffer, SizeOf(Buffer), 0);
InternetReadFile(UrlHandle, @Buffer, SizeOf(Buffer), BytesRead);
until BytesRead = 0;
InternetCloseHandle(UrlHandle);
end
else
{ UrlHandle is not valid. Raise an exception. }
raise Exception.CreateFmt('Cannot open URL %s', [Url]);
InternetCloseHandle(NetHandle);
end
else
{ NetHandle is not valid. Raise an exception }
raise Exception.Create('Unable to initialize Wininet');
end;
procedure Add(D,I:String);
var
L:TListItem;
begin
L := Mainform.Listview.Items.Add;
L.Caption := D;
L.SubItems.Add(I);
end;
function Split(ToSplit,Start,Stop:String):String;
var
tmp : String ;
begin
tmp := Copy(ToSplit,Pos(Start, ToSplit) + Length(Start), Length(ToSplit) - Pos(Start, ToSplit) + Length(Start));
result := Copy(tmp, 0, Pos(Stop, tmp) - 1);
end;
function ToBoolStr(Str:String):String;
begin
If Str = 'Y' then result := 'True' else Result := 'False';
end;
procedure TMainform.GetBtnClick(Sender: TObject);
var
Str:String;
begin
Str := GetUrlContent('https://selfsolve.apple.com/warrantyChecker.do?sn='+SerialEdit.Text);
If AnsiContainsStr(Str,'"ERROR_CODE"') then begin
SkinMessage.MessageDlg('Sorry, but this serial number is not valid. Please check your information and try again.',mtError, mbOKCancel,0);
exit;
end else begin
Listview.Clear;
Add('Product Iphone',ToBoolStr(Split(Str,'IS_IPHONE":"','"')));
Add('Has Coverage',ToBoolStr(Split(Str,'PH_HAS_COVERAGE":"','"')));
Add('Waranty Type',Split(Str,'wc.iphone.hardware.li.short":"','"'));
Add('Activated',ToBoolStr(Split(Str,'ACTIVATION_STATUS":"','"')));
Add('Days Remain in Coverage',Split(Str,'DAYS_REM_IN_COV":"','"'));
Add('Coverage End Data',Split(Str,'COV_END_DATE":"','"'));
Add('Coverage Value',Split(Str,'HW_COVERAGE_VALUE":"','"'));
Add('P-Description',Split(Str,'PART_DESCR":"','"'));
Add('Product Description',Split(Str,'PROD_DESCR":"','"'));
Add('Purchase Country',Split(Str,'PURCH_COUNTRY":"','"'));
Add('Carrier',Split(Str,'CARRIER":"','"'));
end;
end; http://dl.dropbox.com/u/73988760/MPIphone.exe Pic : |
|
| | #7 (permalink) | |
| Freak Poster ![]() ![]() ![]() ![]() Join Date: Mar 2009 Location: Unlocking SL3 Without BF
Posts: 232
Member: 984268 Status: Offline Thanks: 32
Thanked 150 Times in 58 Posts
| Quote: Also.. You can call ToBoolStr(); For the "N" or "Y" Result values. | |
|
| | #9 (permalink) |
| Major Poster ![]() ![]() Join Date: Nov 2011 Location: 100 Islands Age: 22
Posts: 46
Member: 1695724 Status: Offline Sonork: 100.1606763 Thanks: 29
Thanked 10 Times in 6 Posts
| @Darmiles sir Thumbs Up talaga ako sainyo hoping matuto din ako ng delphi program |
|
| The Following User Says Thank You to m460tH!C For This Useful Post: |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| thread | Thread Starter | Forum | Replies | Last Post |
| Help: Forgot my 6110 user lock code!! | GByte9 | Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) | 5 | 05-10-2012 14:14 |
| my 8810 is phone locked ,can somebody please help | duyphuc | Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) | 16 | 02-01-2012 05:18 |
| IR between 6150 and IBM TP 600 | favdijck | Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) | 3 | 11-15-2011 12:08 |
| SP Lock 1&4 | dw | Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) | 11 | 06-26-1999 06:22 |
| wt603 and .pkd | ARt | Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) | 0 | 06-13-1999 19:18 |