Bitcoin Forum
April 25, 2024, 04:20:51 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Two Small PHP fixes - Will Pay .5btc  (Read 1287 times)
cosmicboy (OP)
Member
**
Offline Offline

Activity: 94
Merit: 10


View Profile
September 24, 2013, 04:51:51 AM
 #1

I recently installled the wordpress plugin wp2pgpmail.com   http://wp2pgpmail.com/
It is a pretty simple plugin and mostly consists of one php file: http://pastebin.com/01sLdyxJ

I need two small modifications:

1) The email "from" field arrives as "encrypted data". The email field itself decrypts within the message body but the "from" field of the email is encrypted so I can't just hit reply. I have to copy and paste the email from the message body. I would like the "from" field of the email to not be encrypted

2) I would like to strip out all of the form field names from emails so just the data comes in.

Will pay .25 bitcoin for each task. Do one or both of them. If you need the other files let me know but theres not much...just some javascript that does the encryption. This file does all the emailing work.
1714018851
Hero Member
*
Offline Offline

Posts: 1714018851

View Profile Personal Message (Offline)

Ignore
1714018851
Reply with quote  #2

1714018851
Report to moderator
1714018851
Hero Member
*
Offline Offline

Posts: 1714018851

View Profile Personal Message (Offline)

Ignore
1714018851
Reply with quote  #2

1714018851
Report to moderator
Once a transaction has 6 confirmations, it is extremely unlikely that an attacker without at least 50% of the network's computation power would be able to reverse it.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714018851
Hero Member
*
Offline Offline

Posts: 1714018851

View Profile Personal Message (Offline)

Ignore
1714018851
Reply with quote  #2

1714018851
Report to moderator
1714018851
Hero Member
*
Offline Offline

Posts: 1714018851

View Profile Personal Message (Offline)

Ignore
1714018851
Reply with quote  #2

1714018851
Report to moderator
ghedipunk
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile
September 24, 2013, 02:41:02 PM
Last edit: September 24, 2013, 03:27:43 PM by ghedipunk
 #2

Both parts require access to the JS file, since the PHP never sees the unencrypted values.

Also, the "free" version on the wp2pgpmail site is not the same version that was posted to Pastebin.  Your version is 2.4.1, and the free version is 1.4.  (This probably doesn't matter, but it does server as a nice FYI, no?)
DoRob
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
September 24, 2013, 09:52:14 PM
 #3

I can do this. Please send me a PM Wink

1DoRobFUcdcsnS4cDAPsGkqAGiWzacQ94p
ghedipunk
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile
September 25, 2013, 12:30:30 AM
 #4

The best thing for cosmicboy to do in this case is to post the JS file publicly, rather than to PM people.

That way, the person who fixes it first gets the bounty, and cosmicboy doesn't have to wait around for a slow developer who he put his (misguided) faith in.
Sothh
Full Member
***
Offline Offline

Activity: 238
Merit: 100



View Profile
September 25, 2013, 03:26:29 PM
 #5

I can fix this, no problem.  I am well versed in PHP and Javascript.
cosmicboy (OP)
Member
**
Offline Offline

Activity: 94
Merit: 10


View Profile
September 30, 2013, 04:16:13 PM
 #6

I'm going to take ghedipunk's advice and just post everything up needed to do the job.

Here is a link to the whole plugin I need modified: http://www.filedropper.com/2012-06-25wp2pgpmail-pro
This will install in any wordpress.

I need you to:

1) Remove all form names in the output email. Right now I get:

name: Joe Smith
address: 18 Nickel Lane
City-state-zip: Nowhere, NJ, 37362

I would like:
Joe Smith
18 Nickel Lane
Nowhere, NJ 37362

2) I would like the "from" field in the email to not be encrypted, but to show their email address

 I will pay .5btc for doing this (or .25btc if you can only do one). You can PM me here. Show me a working version on your site and I will pay you and you can send me the files after. I will post up here when the task has been completed. If you are actively working on it with an ETA let me know and I can post that here as well.
ndsdb
Newbie
*
Offline Offline

Activity: 49
Merit: 0


View Profile
September 30, 2013, 04:29:16 PM
 #7

Hi,

I have just started.
BitVegas
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250



View Profile
September 30, 2013, 05:35:14 PM
Last edit: September 30, 2013, 05:45:53 PM by BitVegas
 #8

This should solve issue #2:
http://pastebin.com/hzYkVqwE

replace wp2pgpmail-validate.js with that code.

Changes (Incase you want to know):

Line 32:
Code:
message += label + " : " + champ.value + "\r\n";
To:
message += champ.value + "\r\n";

Line 40:
Code:
message += "\r\n[IP : " + form._ip.value + "]\r\n";
To:
message += "\r\n[" + form._ip.value + "]\r\n";

Payment to: 1Pqd5pR2V53y59hhYyoRkusQrzC1W31V5g

Upon payment I can look into the other issue Smiley

cosmicboy (OP)
Member
**
Offline Offline

Activity: 94
Merit: 10


View Profile
September 30, 2013, 05:53:47 PM
 #9

Hey bitvegas. Fix did not work for me. Did you test it?  Email is still encrypted and it had the negative effect of sending some of the other form fields as "encrypted data"

cb
cosmicboy (OP)
Member
**
Offline Offline

Activity: 94
Merit: 10


View Profile
September 30, 2013, 10:18:52 PM
 #10

Still looking for fixes....

cb
ghedipunk
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile
September 30, 2013, 11:09:39 PM
 #11

http://pastebin.com/v602h3Ha

wp2pgmail-validate.js

Lines 35 and 36 need to be edited by you, depending on how your form is set up.

These are from the "name" properties of the input tags.  An easy way to find this is, using Chrome, right click the text field, then select "Inspect element".  This will bring up a parsed source code view, and will highlight the line with the input tag.  Look for name="wp2pgpmail-asdf-1234".

The order does not matter, and if there are any other fields that need to be kept from becoming part of the encrypted message, add the names there as well.

Also, I'm not sure if you've done this already, but to have the "reply-to" in the email be set correctly so that you can just hit your Reply button, edit your form, then under Form Settings, and under Email, set the "User's Name" field to the name field in your form, and the "User's Email" field as well.  Make sure that both fields are set to "required" and that the email field has validation set to "Email".

I believe that this covers everything.  If not, please feel free to pester me again.

166XA8Kq3Dv4DVS6vnvzRotpmJovycWd7w
cosmicboy (OP)
Member
**
Offline Offline

Activity: 94
Merit: 10


View Profile
October 01, 2013, 03:45:33 AM
 #12

both problems have been solved. ghedipunk, bitcoin sent. ndsdb send your wallet address.

thanks!
ghedipunk
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile
October 01, 2013, 04:07:34 AM
 #13

Payment confirmed.  It was a pleasure!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!