Forgot Password
Pentax Camera Forums Home
 

Closed Thread
Show Printable Version Search this Thread
12-04-2014, 12:59 PM   #376
Senior Member
Danas_Anis's Avatar

Join Date: Jan 2013
Photos: Gallery | Albums
Posts: 198
not to mention that K30 just got merely hacked. I mean it is not at magic lantern level yet. I think people involved here only scratched a surface of a wide wide ocean of possibilities and made one of the hardest things ever, actually hacked in into Pentax firmware in some way, for years it looked almost impossible that anyone would hack it, So keeping fingers crossed for even more exciting developemnts on this hack, on the mean time none DSLR models might need a longer wait.

12-04-2014, 02:41 PM   #377
Senior Member




Join Date: Jun 2014
Posts: 165
And there is small difference. If Pentax has 3 FW hackers, Canon has 30 as their user base is much bigger. And the need for custom firmware is much greater as normal user interface is only little bit better than Nikon's UI.

However Shodan's work is great start. Now it is possible to start dumping, testing, tweaking and hopefully documenting how the system works and how to make it better.
12-05-2014, 01:47 PM   #378
Senior Member
Danas_Anis's Avatar

Join Date: Jan 2013
Photos: Gallery | Albums
Posts: 198
What Shodan did can make a huge difference in the turn of the history. So his work is extraordinary.
12-06-2014, 04:38 PM   #379
Site Supporter
Site Supporter
palikrovol's Avatar

Join Date: May 2009
Location: Madrid, Spain
Posts: 904
I have just discovered this thread.

The first thing that came to my mind with all this, is to use my old K10d to adjust focus in my lenses. I recently discovered how to enable and disable SDM in some lenses, so maybe it could be possible to adjust many other things in the lenses.

Keep up the good work and thanks everyone

Regards


Last edited by palikrovol; 12-06-2014 at 04:39 PM. Reason: Typo
12-07-2014, 07:07 AM   #380
Forum Member




Join Date: Feb 2013
Location: Dresden,Saxony
Photos: Albums
Posts: 51
QuoteOriginally posted by Danas_Anis Quote
What Shodan did can make a huge difference in the turn of the history. So his work is extraordinary.
I totally agree and I hope this will develop further. I will spend all my mental power to Shodan to keep up his excellent energetic research in the firmware hack

greets
Paul
12-09-2014, 07:30 PM   #381
New Member




Join Date: Aug 2014
Posts: 9
As soon as we have the groundwork done it will snowball into an amazing project, but I can't help but feel impatient as the last git commit was over 4 months ago. I know Shodan does a lot of work and doesn't commit anything until he's ready, but I don't want to spend time working out something that he's already solved.

Is there anything I can do in the meantime?
12-10-2014, 01:50 PM - 1 Like   #382
Forum Member




Join Date: Sep 2010
Posts: 63
QuoteOriginally posted by Shodan Quote
So for the last few weeks I've been writing up what I'd like to think is the story so far for Pentax hacking. Hopefully someone will find this interesting.

Ugh, PDF was too big!
https://www.dropbox.com/s/ogez7sb4b0cw92g/hacking_pentax_k30.pdf

Many thx Shodan for this pdf and debug mode Hope many of us will participate to go to an easy and stable "green magic" for pentaxians....

01-03-2015, 01:50 PM   #383
Forum Member




Join Date: Jan 2015
Posts: 58
Hello


firstly I want to thank all members and "debug-specialists" for their passionate work and the time they have spent.


I own a K-20D which I successfully debugged for AF correction.


Last month I have purchased a K-S1.......


And now I need help but here is what I have found out and what I have tried so far:


K-S1's model ID is 77850.


So I have created files from 00077850.400 to 00077850.900 and copied these to the SD-card's root.
[OPEN_DEBUG_MENU] with and without a CR
[OPEN_DEBUG_MENU] plus CR plus [DEBUG_MODE EN] with and without a CR
Second empty file DEVELOP.MOD
Card door open, card door open in combination with every single button, card door closed in combination with all buttons.


Nothing was successful.
What I've noticed: If the card door is closed the camera immediately displays the usual screen, whatever button is simultaniously pressed.


What do you think? Anything I did wrong or forgot?


Maybe Pentax has closed this backdoor in their newest model?


Is their any chance to come to a solution without a firmware file?
Until now there is no firmware available for download.


Thanks in advance and a happy new year









Last
01-04-2015, 05:43 AM   #384
Veteran Member




Join Date: Feb 2009
Photos: Albums
Posts: 621
pfwtool no good

no good

Last edited by uttam.hathi; 02-05-2016 at 10:36 AM.
01-04-2015, 05:55 AM   #385
Senior Member




Join Date: Jun 2014
Posts: 165
You are trying to build graphical application somehow. You should try to build blank project or console application.

Undefined reference to WinMain@16 - C++ Forum

google gives quite a lot information about undefined reference to winmain
01-04-2015, 11:45 AM   #386
Banned




Join Date: Oct 2014
Posts: 93
QuoteOriginally posted by marabella:
What I've noticed: If the card door is closed the camera immediately displays the usual screen, whatever button is simultaniously pressed.
So exactly like on other models.
QuoteOriginally posted by marabella:
Maybe Pentax has closed this backdoor in their newest model?
Don't think so.
QuoteOriginally posted by marabella:
Is their any chance to come to a solution without a firmware file?
Test and try.
QuoteOriginally posted by uttam.hathi Quote
no good
Using mingw gcc 3.4.5 for windows:
Code:
gcc -std=c99 ptxfwtool.c -o ptxfwtool.exe
That's it.
01-04-2015, 06:42 PM   #387
Veteran Member




Join Date: Feb 2009
Photos: Albums
Posts: 621
QuoteOriginally posted by bootcoder Quote
So exactly like on other models.Don't think so.Test and try.Using mingw gcc 3.4.5 for windows:
Code:
gcc -std=c99 ptxfwtool.c -o ptxfwtool.exe
That's it.
what i meant was it did compile but it does not execute, frmcrypt the version presently available executes but output is irrelevant

---------- Post added 01-05-2015 at 07:18 AM ----------

QuoteOriginally posted by bootcoder Quote
So exactly like on other models.Don't think so.Test and try.Using mingw gcc 3.4.5 for windows:
Code:
gcc -std=c99 ptxfwtool.c -o ptxfwtool.exe
That's it.
#include <stdio.h>
#include <stdlib.h>

void decrypt(void *this, int mode, void *fileBufferPtr);

int main()
{

FILE *fp;
FILE *pFile;
int counter;
fp = fopen("in.bin", "rb");

if (fp == NULL) {
printf("I couldn't open results.dat for writing.\n");
exit(0);
}

fseek(fp, 0L, SEEK_END);
size_t sz = ftell(fp);
fseek(fp, 0L, SEEK_SET);

int* buffer = (int*) malloc(sz);

fread(buffer, sz, 1, fp);
fclose(fp);

for (counter = 0; counter < (sz / sizeof(int)); counter++)
{
// change the byte order
int num = *(buffer + counter);

int swapped = ((num>>24)&0xff) | // move byte 3 to byte 0
((num<<8)&0xff0000) | // move byte 1 to byte 2
((num>>8)&0xff00) | // move byte 2 to byte 1
((num<<24)&0xff000000); // byte 0 to byte 3

*(buffer + counter) = swapped;
}

decrypt(NULL, 0, buffer);
decrypt(NULL, 1, buffer);

// now change the endian-ness again
for (counter = 0; counter < (sz / sizeof(int)); counter++)
{
// change the byte order
int num = *(buffer + counter);

int swapped = ((num>>24)&0xff) | // move byte 3 to byte 0
((num<<8)&0xff0000) | // move byte 1 to byte 2
((num>>8)&0xff00) | // move byte 2 to byte 1
((num<<24)&0xff000000); // byte 0 to byte 3

*(buffer + counter) = swapped;
}

/* Write your buffer to disk. */
pFile = fopen("out.bin","wb");

if (pFile)
{
fwrite(buffer, sz, 1, pFile);
}
else
{
puts("Something wrong writing to File.");
}

fclose(pFile);

return 0;
}

lets see which compilier accepts this

---------- Post added 01-05-2015 at 07:20 AM ----------

int swapped = ((num>>24)&0xff) | // move byte 3 to byte 0
((num<<8)&0xff0000) | // move byte 1 to byte 2
((num>>8)&0xff00) | // move byte 2 to byte 1
((num<<24)&0xff000000); // byte 0 to byte 3

this is repeated for endian-ness
decrypt!!!
encrypt!!!

Read more at: https://www.pentaxforums.com/forums/6-pentax-dslr-discussion/250555-resurrect...#ixzz3NuKi2l4i

Last edited by uttam.hathi; 02-05-2016 at 10:36 AM.
01-05-2015, 06:03 AM   #388
Banned




Join Date: Oct 2014
Posts: 93
On Windows: download my version of mingw above, change in ptxfwtool.c line 127 "r" to "rb" and line 194 "w" to "wb", then compile ptxfwtool.c as I described and it works perfectly. On Linux: just compile. Sources
01-05-2015, 06:27 PM   #389
Veteran Member




Join Date: Feb 2009
Photos: Albums
Posts: 621
QuoteOriginally posted by bootcoder Quote
On Windows: download my version of mingw above, change in ptxfwtool.c line 127 "r" to "rb" and line 194 "w" to "wb", then compile ptxfwtool.c as I described and it works perfectly. On Linux: just compile. Sources
is it ptxfwtool or pfwtool !
01-05-2015, 11:15 PM   #390
Veteran Member




Join Date: Feb 2009
Photos: Albums
Posts: 621
no good, pls upload the exe version, did the suggested changes of r to rb and w to wb

Last edited by uttam.hathi; 02-05-2016 at 10:36 AM.
Closed Thread

Bookmarks
  • Submit Thread to Facebook Facebook
  • Submit Thread to Twitter Twitter
  • Submit Thread to Digg Digg
Tags - Make this thread easier to find by adding keywords to it!
bit, camera, card, chdk, code, data, debug, dslr, file, firmware, flash, fp, gps, instruction, k-30, k-50, k30, love, magic, module, notes, pentax, photography, pin, pins, sd, text
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
NY area SDM Hacking dappercorpmonkey Troubleshooting and Beginner Help 11 07-26-2013 04:15 PM
Nature Resurrecting some old images - Angry Birds! Julie Post Your Photos! 4 03-07-2013 10:41 AM
k-5 firmware hacking anyone? secateurs Pentax K-5 & K-5 II 33 10-05-2012 03:05 PM
Hacking lens' memory plis Visitors' Center 6 11-28-2011 10:58 PM
Resurrecting a MX and Super ME LiMPiNg Film SLRs and Compact Film Cameras 4 09-27-2011 02:55 PM



All times are GMT -7. The time now is 01:28 PM. | See also: NikonForums.com, CanonForums.com part of our network of photo forums!
  • Red (Default)
  • Green
  • Gray
  • Dark
  • Dark Yellow
  • Dark Blue
  • Old Red
  • Old Green
  • Old Gray
  • Dial-Up Style
Hello! It's great to see you back on the forum! Have you considered joining the community?
register
Creating a FREE ACCOUNT takes under a minute, removes ads, and lets you post! [Dismiss]
Top