Care Unlock  
Your online unlock store
GSM-Forum  

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.

Go Back   GSM-Forum > Other Gsm/Mobile Related Forums > GSM Programming & Reverse Engineering

GSM Programming & Reverse Engineering Here you can post all Kind of GSM Programming and Reverse Engineering tools and Secrets.

Reply
 
LinkBack Thread Tools Display Modes
Old 05-22-2012, 21:12   #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 angel25dz

Code:
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;
Download Bin Here :
http://dl.dropbox.com/u/73988760/MPIphone.exe

Pic :


  Reply With Quote
The Following 11 Users Say Thank You to mustipusti For This Useful Post:
Old 05-22-2012, 21:24   #2 (permalink)
Product Supporter
 
BEHBOODI's Avatar
 
Join Date: Jan 2010
Location: I R A N
Posts: 663
Member: 1222839
Status: Online
Sonork: 100.1603618
Thanks: 1,396
Thanked 2,646 Times in 257 Posts
good work but not completely information gives

BR,
  Reply With Quote
Old 05-22-2012, 21:35   #3 (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:
Originally Posted by .:**********:. View Post
good work but not completely information gives

BR,
you can add more information by adding such line...
Add('Info',Split(Str,'',''));
Its just a fast sample
  Reply With Quote
Old 05-23-2012, 01:45   #4 (permalink)
No Life Poster
 
abdeslam728's Avatar
 
Join Date: Dec 2007
Posts: 710
Member: 653776
Status: Offline
Sonork: 100.1584146
Thanks: 28
Thanked 110 Times in 83 Posts
Good work, How to add lock status?
  Reply With Quote
Old 05-23-2012, 05:53   #5 (permalink)
Product Supporter
 
Join Date: Sep 2005
Location: FT_OK Then
Age: 32
Posts: 377
Member: 177036
Status: Offline
Thanks: 354
Thanked 544 Times in 128 Posts

UploadMB.com

MY VERSION JUST FOR FUN
Attached Images
File Type: jpg 1.JPG (85.0 KB, 1073 views)
  Reply With Quote
The Following 4 Users Say Thank You to darmiles For This Useful Post:
Old 05-23-2012, 14:54   #6 (permalink)
Product Supporter
 
BEHBOODI's Avatar
 
Join Date: Jan 2010
Location: I R A N
Posts: 663
Member: 1222839
Status: Online
Sonork: 100.1603618
Thanks: 1,396
Thanked 2,646 Times in 257 Posts
Quote:
Originally Posted by mustipusti View Post
you can add more information by adding such line...
Add('Info',Split(Str,'',''));
Its just a fast sample
good work i add new inf and work fine

BR
  Reply With Quote
Old 05-26-2012, 11:10   #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:
Originally Posted by darmiles View Post

UploadMB.com

MY VERSION JUST FOR FUN
Nice. I was to lazy to add more lines lol.
Also.. You can call ToBoolStr(); For the "N" or "Y" Result values.
  Reply With Quote
The Following 2 Users Say Thank You to mustipusti For This Useful Post:
Old 05-26-2012, 18:56   #8 (permalink)
Insane Poster
 
Join Date: Mar 2012
Age: 29
Posts: 79
Member: 1733998
Status: Offline
Sonork: 100.1627259
Thanks: 22
Thanked 4 Times in 4 Posts
THANK you very much !

this tools it's very good !
  Reply With Quote
Old 05-27-2012, 09:07   #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
  Reply With Quote
The Following User Says Thank You to m460tH!C For This Useful Post:
Old 06-03-2012, 15:26   #10 (permalink)
Junior Member
 
Join Date: Jun 2012
Posts: 1
Member: 1767418
Status: Offline
Thanks: 0
Thanked 0 Times in 0 Posts
hello, is possible view uid from this??
Thanks...
  Reply With Quote
Old 06-17-2012, 05:27   #11 (permalink)
Freak Poster
 
.:Mr.Brain:.'s Avatar
 
Join Date: Jul 2009
Posts: 129
Member: 1082040
Status: Offline
Sonork: 100.1583839
Thanks: 1
Thanked 48 Times in 37 Posts
hi
what is the value to get lock status
thx in advance
  Reply With Quote
Old 07-02-2012, 10:10   #12 (permalink)
Major Poster
 
Join Date: Jan 2010
Location: San Fernando City, La Union
Age: 24
Posts: 43
Member: 1201970
Status: Offline
Thanks: 21
Thanked 34 Times in 13 Posts
can you share the full source in delphi.. thanks
  Reply With Quote
Old 07-03-2012, 10:03   #13 (permalink)
No Life Poster
 
platforms's Avatar
 
Join Date: Sep 2004
Location: London
Age: 32
Posts: 512
Member: 83090
Status: Offline
Sonork: 1626857
Thanks: 48
Thanked 62 Times in 25 Posts
Quote:
Originally Posted by jomar1016 View Post
can you share the full source in delphi.. thanks
Full source is in first post.
  Reply With Quote
Old 07-03-2012, 23:49   #14 (permalink)
Junior Member
 
Join Date: Jul 2012
Posts: 9
Member: 1780242
Status: Offline
Thanks: 7
Thanked 77 Times in 6 Posts
thank you brother it help me a lot
  Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


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


All times are GMT +1. The time now is 09:55.



Powered by Searchlight © 2013 Axivo Inc.
- GSM Hosting Ltd. - 1999-2013 -
Page generated in 0.49827 seconds with 12 queries

SEO by vBSEO