GSM Shop GSM Shop
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.
Only registered members may post questions, contact other members or search our database of over 8 million posts.

Registration is fast, simple and absolutely free so please - Click to REGISTER!

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
Posts: 234
Member: 984268
Status: Offline
Thanks Meter: 150
Iphone Warranty,Lock Status and Carrier info [DELPHI]


Hi i was bored and checking this thread: http://forum.gsmhosting.com/vbb/f83/...apple-1478417/ 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:
Show/Hide list of the thanked
Old 05-22-2012, 21:24   #2 (permalink)
No Life Poster
 
BEHBOODI's Avatar
 
Join Date: Jan 2010
Location: IRAN
Posts: 1,234
Member: 1222839
Status: Offline
Sonork: 100.1603618
Thanks Meter: 3,944
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
Posts: 234
Member: 984268
Status: Offline
Thanks Meter: 150
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: 702
Member: 653776
Status: Offline
Sonork: 100.1584146
Thanks Meter: 94
Good work, How to add lock status?
  Reply With Quote
Old 05-23-2012, 05:53   #5 (permalink)
No Life Poster
 
darmiles's Avatar
 
Join Date: Sep 2005
Location: Resign
Posts: 525
Member: 177036
Status: Offline
Thanks Meter: 934
Donate money to this user

UploadMB.com

MY VERSION JUST FOR FUN
Attached Images
File Type: jpg 1.JPG (85.0 KB, 1162 views)
  Reply With Quote
The Following 4 Users Say Thank You to darmiles For This Useful Post:
Show/Hide list of the thanked
Old 05-23-2012, 14:54   #6 (permalink)
No Life Poster
 
BEHBOODI's Avatar
 
Join Date: Jan 2010
Location: IRAN
Posts: 1,234
Member: 1222839
Status: Offline
Sonork: 100.1603618
Thanks Meter: 3,944
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
Posts: 234
Member: 984268
Status: Offline
Thanks Meter: 150
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: 40
Posts: 99
Member: 1733998
Status: Offline
Sonork: 100.1627259
Thanks Meter: 5
THANK you very much !

this tools it's very good !
  Reply With Quote
Old 05-27-2012, 09:07   #9 (permalink)
Insane Poster
 
Join Date: Nov 2011
Location: 00100010001
Age: 33
Posts: 83
Member: 1695724
Status: Offline
Sonork: 100.1606763
Thanks Meter: 24
@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 Meter: 0
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: 132
Member: 1082040
Status: Offline
Sonork: 100.1583839
Thanks Meter: 47
hi
what is the value to get lock status
thx in advance
  Reply With Quote
Old 07-02-2012, 10:10   #12 (permalink)
Freak Poster
 
Join Date: Jan 2010
Location: San Fernando City, La Union
Age: 35
Posts: 103
Member: 1201970
Status: Offline
Thanks Meter: 45
Donate money to this user
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: 43
Posts: 520
Member: 83090
Status: Offline
Sonork: 1626857
Thanks Meter: 52
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
Reply

Bookmarks


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 ,2 ,3 ,L ) 4 02-26-2016 14:52
my 8810 is phone locked ,can somebody please help duyphuc Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 18 12-23-2014 09:03
IR between 6150 and IBM TP 600 favdijck Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 3 11-15-2011 13:08
SP Lock 1&4 dw Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 11 06-26-1999 06:22
wt603 and .pkd ARt Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 0 06-13-1999 19:18

 



All times are GMT +1. The time now is 18:02.



Powered by Searchlight © 2024 Axivo Inc.
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
- GSM Hosting Ltd. - 1999-2023 -
Page generated in 0.25478 seconds with 11 queries

SEO by vBSEO