PDA

View Full Version : [Tool] BEncode Editor



anon
21.07.08, 22:46
SB-Innovation Presents


>>>>>> BEncode Editor <<<<<<


http://www.sb-innovation.de/attachment.php?attachmentid=18894


╔═══════════════════════════╗
Coded by:
╚═══════════════════════════╝

>>>>>> Ultima (https://sites.google.com/site/ultimasites/bencode-editor) <<<<<<

╔═══════════════════════════╗
Changelog / Features:
╚═══════════════════════════╝

(Quoted from the official site)

Introduction
BEncoding is a data encoding scheme used primarily in the BitTorrent world. Because BEncoded files can contain binary data, and because of some of the intricacies involved in the way binary strings are stored, it is often not safe to edit such files in text editors. Many people have previously asked about where one might find an editor that can safely edit BEncoded files, but none have really existed in the general sense. The only ones I've seen were .torrent file editors, which (although they technically do edit BEncoded files) don't edit just ANY type of BEncoded file. Out of a bit of boredom and free time, this editor was born.

Example Uses
· Edit .torrent files
·· the announce/announce-list keys (binary/list) store the tracker(s)
·· the url-list key (binary/list) stores the webseed(s)
·· the nodes key (list) stores the DHT bootstrap node(s)
·· WARNING: When editing .torrent files, any changes to the info dictionary will change the .torrent file's infohash. Unless you know what you're doing, you should refrain from doing this. If you aren't familiar with the .torrent file metadata structure, read this: https://wiki.theory.org/BitTorrentSpecification (in particular, the "Metainfo File Structure" section).
· Edit µTorrent's .dat files
·· corrupt resume.dat files can sometimes be salvaged simply by loading and saving the resume.dat file in this editor
·· the paths stored in resume.dat can be edited en masse with Find/Replace
·· WARNING: Make sure you exit µTorrent before editing these files, as µTorrent rewrites/updates the files on exit. Additionally, the .fileguard key should be removed, since µTorrent will consider its .dat file to be damaged if it is edited and no longer matches the stored .fileguard hash.

Final Warning
This utility is for advanced users. Read the warnings above, and read them again until you understand well what you're getting yourself into by using this editor. Its relatively intuitive UI can beguile most uninitiated/beginning users, as it has an inherent ability to invalidate many files through wrong and incorrect edits.

Consider this editor to be experimental. As such, you should exercise caution by backing up any files you plan on editing with this utility.

Download
x64 builds will run only on 64-bit versions of Windows. Unicode builds can display Unicode characters (like Asian characters) properly, but work only with Windows 2000 and above. ANSI builds can't display Unicode characters properly, but should work on Windows 9x and above.

Notes
· Binary data and integers are exported as raw data rather than BEncoded data
· Dictionary merging does not sort keys or resolve duplicate keys
· File recovery recovers only decodable parts of input files
· Finding "Value by Key" finds exact key names unless RegEx is used
· Holding Ctrl while reloading reloads data from disk
· Holding Shift while moving moves an item to top/bottom (direction-dependent)
· Holding Shift while pasting pastes the item below the currently focused item
· Holding Shift while sorting will recursively search for dictionaries to sort
· Only dictionaries can be sorted
· Only files containing dictionaries and lists can be edited directly
· Switching an item between dictionary/list will cause the item to be cleared
· The root of a dictionary (not its children) must be selected to sort it


Mod Features

· nothing is actually modded, I just packed the latest ANSI, Unicode and x64 versions for convenience
· you can use this to edit your uTorrent stats, see 29925

Codeman
21.07.08, 23:16
kann jemand die anleitung vielleicht auf deutsch übersetzten:wink:.

hitman
21.07.08, 23:19
kann jemand die anleitung vielleicht auf deutsch übersetzten:wink:.

kurz und knapp man kann mit den tool .torrent dateien editieren und auch die aus den utorrent stammenden .dat dateien editieren

Unregistered
19.09.09, 04:46
the file contains a trojan !

anon
19.09.09, 15:40
the file contains a trojan !

No, it doesn't. False positive.

SBfreak
19.09.09, 18:28
the file contains a trojan !
Don't be fooled.Alot of scene releases contain "trojans" these days.
Anything that you will find on this forum is verified and doesn't contain any malware.
Except those freaking screamers:rolleyes2:

C3PO
17.05.10, 15:38
How can I edit these things?
http://img101.imageshack.us/img101/9201/79213953.jpg (http://img101.imageshack.us/i/79213953.jpg/)

Butcho
17.05.10, 16:05
You must edit the settings.dat file under the hidden folder:

C:\Documents and Settings\[your user]\Application Data\utorrent

anon
17.05.10, 16:40
How can I edit these things?

http://www.sb-innovation.de/f47/utorrent-statistics-file-8036/

C3PO
17.05.10, 17:09
Yep I know that, but how do I edit exactly these stats, how are the abbreviations in the dat file?

anon
17.05.10, 17:10
Just open the .dat file in BEncode Editor, look for the values, double-click -> edit it -> OK, then save the file.

C3PO
17.05.10, 17:18
Ok, I'll try to explain it 1 more time. I know how to edit total down, up etc, but now I updated to 2.0.2 and i have the stats shown on the screen: upped today, down today etc and I can't find where should I edit them in the dat file.

anon
17.05.10, 17:19
Find out yourself :biggrin:

Or you can wait for me to go home and check :unsure:

C3PO
17.05.10, 17:22
Well I didn't find out so I guess, I'll wait ;) 10x in advance

anon
17.05.10, 21:35
I don't seem to be able to find them. :unsure: I found some values I hadn't spotted before called "pu" and "pd", but they don't seem to match the info we're looking for (stats: 54.7MB downloaded today, 1.84MB uploaded, pd=768, pu=703).

I think maybe uTorrent looks at settings_saved_systime, tu and td to know the daily values.

C3PO
17.05.10, 22:08
Aha, well i don't think they're more important than tu and td anyway so...What do u think?

anon
17.05.10, 22:09
Importance depends on what you want to achieve :tongue:

If you want to fake your stats to get an invite somewhere, just edit the td and tu values and say you've just restarted your PC.

C3PO
17.05.10, 22:59
Yeah, that's what I meant btw I got my precious invite :smilie_colors1:

Mihai
21.05.10, 13:36
With this program i can recover my torrents any time if even if i suffer a power failure right?

anon
21.05.10, 17:28
Depends on if all the entries from resume.dat are deleted or not.

If they are, the only way to recover your torrent list would be making daily backups of it. If they aren't, I guess you could "repair" the file with this, but have absolutely no idea how.

Mihai
21.05.10, 19:05
I see.And how about the utorrent statistics? I tryed today to modify them but it was in binary code :lol:

anon
21.05.10, 19:06
https://www.sb-innovation.de/f47/utorrent-statistics-file-8036/

saebrtooth
22.05.10, 05:51
why does this info need https ?

SBfreak
22.05.10, 13:37
why does this info need https ?


Sbi supports https?:eek:

saebrtooth
22.05.10, 15:21
sbi supports attachments too but I dont see the whole thread in compressed file

shoulder
22.05.10, 15:48
Sbi supports https?:eek:
Yes, it does. :P

saebrtooth
22.05.10, 15:59
hehe Ive got the certificate to prove it :tongue;

anon
22.05.10, 17:41
why does this info need https ?

Because I forgot to delete the S from the link. :dabs:

lolz
24.05.10, 11:28
I don't seem to be able to find them. :unsure: I found some values I hadn't spotted before called "pu" and "pd", but they don't seem to match the info we're looking for (stats: 54.7MB downloaded today, 1.84MB uploaded, pd=768, pu=703).

I think maybe uTorrent looks at settings_saved_systime, tu and td to know the daily values.

I think value is between dailydownload/upload hist. I modify it and got something. But I dont know exactly value to make it.

anon
24.05.10, 18:23
Don't ask me... I've never really had to modify my uTorrent statistics. :unsure:

But they are stored in the .dat files. If you play with them enough you should be able to change that.

lolz
25.05.10, 01:23
Yes, now I can modify it with a look better value. I got some issue with bin before.

Master Razor
17.08.10, 20:18
Hey guys. Sorry for bumping this old thread. I found out some stuff about the new statistics and mainly "downloaded today" and "downloaded in the last 31 days".

Before you do edit anything in the .dat files, be sure to remove the folowing line fist from settings.dat:
.fileguard key

This will force utorrent to put it's authenticity verification again on first run. If you don't do this utorrent will see that the file has been tampered with and will create multiple settigs.dat.bad files.

The below is everything I found on settings that that has to do with ul/dl statistics:

.daily_download_hist = "Downloaded today" (hex bytes)
.daily_upload_hist = "Uploaded today" (hex bytes)

Transfered last 31 days is daily_download_hist + daily_upload_hist

. daily_local_download_hist = "Downloaded this run" (?)
.daily_local_upload_hist = "Uploaded this run" (?)
.tu = "Total Uploaded" (bytes)
.td = "Total Downloaded" (bytes)
.rt = "Total running time" (seconds)
.fd = "Number of files added"
.st = "Program started: x times"
• Delete settings.dat.old

The (?) means i haven't figured out what type of data to insert in order to make it work. Tried to put 5 gb worth in bytes and it displayed as 9KB or something like that. Hope it helps someone.

Nokki
22.08.10, 17:53
Ok... i'm editing and saving the resume.dat file for a specific torrent, But for some reason utorrent isn't updating the stats for the torrent...?

anon
22.08.10, 17:55
You must do it with uTorrent closed, and delete the resume.dat.old file before you restart it.

Nokki
22.08.10, 18:00
Thanks anon!
Now this is a silly question but wanted to make sure...
There is no way that this new stat will get reported to the tracker right? E.g If I set 145GB uploaded on a torrent? :)

anon
22.08.10, 18:00
No.

Nokki
22.08.10, 18:14
Is there any chance we can jump as seeder on a torrent by editing stats? That way we don't have to use other mods...?

anon
22.08.10, 18:15
You can fool uTorrent into thinking you have the full file editing the .dat file, but it'll realize it doesn't right after the torrent is started, so once again the answer is no. :gtongue:

saebrtooth
24.08.10, 10:06
Is there any chance we can jump as seeder on a torrent by editing stats? That way we don't have to use other mods...?

u can alway use VEM and select "Show as seeder" but then that using another "mod"

anon
24.08.10, 13:08
u can alway use VEM and select "Show as seeder" but then that using another "mod"

Hah, same goes for the (No)Report-Seeder uT mods.

D-Tag
11.01.11, 06:57
How do i add 200GB for "Transfered last 31 days is daily_download_hist + daily_upload_hist" if i added value using bytes its not work! I think there's another kind of thing, So how do i do that?
I can change total download and total upload etc but this one i can't.
Please help me!

anon
11.01.11, 07:34
Apparently, daily_upload_hist and daily_download_hist are a sequence of 248 bytes, 8 per each of the 31 days. I suppose each group of 8 bytes is a number (in hexadecimal) representing how much was uploaded/downloaded every day. If I'm right, get HxD and a decimal to hex converter and see what you can do.

D-Tag
11.01.11, 08:28
I'm not familiar with this statistic so if you can give me solution. I try then "Transferred last 31 days is daily" goes to 51KB.

anon
11.01.11, 18:23
Yeah, I kind of knew it wouldn't be that easy. Maybe I'll see what I can do later.

Nokki
20.06.11, 07:40
Hey guys, I would like to urgently how to make the complted status as 100% because I need to show some proofs :D
I know this has been answered in the past, but worse comes to worse I'll take the screen shot when they're all stopped...

Thanks

Resurrection
20.06.11, 07:45
Hey guys, I would like to urgently how to make the complted status as 100% because I need to show some proofs :D
I know this has been answered in the past, but worse comes to worse I'll take the screen shot when they're all stopped...

Thanks

When you select the torrents ,in the FILES tab right-click on the files.Then "Don't Download"

If you want to add new torrents,in a popup that appears choose "Select none" and add the torrent.

Be sure to remove the "Selected Size" and similar columns from utorrent.

anon
20.06.11, 08:21
http://www.sb-innovation.de/f56/making-torrent-appear-100-done-utorrent-20280/

Search much?

juniper
28.07.11, 22:06
Anon, did you ever figure out how to change the last 31 days transferred?

anon
29.07.11, 02:18
No, but it's not like I bothered, really. But you can always upload to localhost a lot until you hit your desired figure.

juniper
13.08.11, 02:15
No, but it's not like I bothered, really. But you can always upload to localhost a lot until you hit your desired figure.

True. I wonder also if it's possible just to get a copy of the .dat file from someone with a better upload/ratio.

anon
13.08.11, 02:34
My settings.dat without any sensitive stuff... maybe.

Total uploaded on the last 31 days: 64.7GB.

Jordan
15.03.12, 13:32
But you can always upload to localhost a lot until you hit your desired figure.

Can you please tell in detail how this is done?? :smile:

anon
15.03.12, 19:00
Run two instances of uTorrent using different ports. In the first one (the one whose stats you want to increase): go to Preferences -> BitTorrent and make sure "limit local peer bandwidth" is ticked. You might also want to go to Bandwidth and limit the upload speed to 1000kB/s, as it'll go sky-high otherwise. Now, load a public torrent and seed it in the first one, but delete all tracker URLs for it and make sure DHT and PEX are disabled. Note the port you're using for this one.

In the second one (a new, disposable install): load the same torrent, but point it to a different path, and remove all tracker URLs, etc. as well. Now start it. It won't download anything, obviously. Click it in the list, now go to the Peers tab below, right-click the empty area -> Add Peer -> type 127.0.0.1:XXXXX where XXXXX is the port you noted above.

You're now uploading to yourself.

REDBONE
20.04.12, 12:01
Is This Tool Working with New utorrent Files

anon
20.04.12, 14:14
Is This Tool Working with New utorrent Files

As long as uTorrent keeps on using bencoding for its config files, it should keep on woking.

anon
12.06.18, 02:40
I revamped the first post, uploaded the latest versions and did a small cleanup of this thread. Everything that's known about editing uTorrent statistics can now be found at 29925, without the need to "hunt" information spread across multiple threads (one of which was from 2008).