How did the magicians have the power to do miracles similar to what Moses did?

Question:
In Exodus when its tells of the powers that the magicians had, they seem to have the same powers that God gave Moses. What were these powers? Where did they come from and do they exist today?

Answer:
I have put your question into four parts so I can answer it more easily.
 

“In Exodus when its tells of the powers that the magicians had, (1) They seem to have the same powers that God gave Moses. (2) What were these powers ? (3) Where did they come from and (4) do they exist today?
(1) They seem to have the same powers that God gave Moses.
The magicians in Moses’ day were only able to do two of the ten plagues that Moses did. When they tried to do the third plague—bring lice out of the dust—they had to acknowledge: “This is the finger of God” (Exodus 8:19). The Lord told Adam, “Dust thou art, and unto dust shalt thou return” (Genesis 3:19), and only God can bring forth life.
(2) What were these powers?
The Spirit of God tells us in 2 Timothy 3:1-7 about these powers and even tells us the names of the men (though we are not told them in the Old Testament) who had these powers: “Now in the same manner in which Jannes and Jambres withstood Moses, thus these also withstand the truth; men corrupted in mind, found worthless as regards the faith. But they shall not advance farther; for their folly shall be completely manifest to all, as that of those also became” (2 Timothy 3:8, 9—Darby Translation).
These powers and men were like the corruption in the “last days” (2 Timothy 3:1) among professing Christians. Whatever these powers were, they were far inferior to the power of God that was manifested through Moses, and their “folly” was eventually manifested to all. The magicians could only increase the evil by what they did. They could not remove it. The account in Exodus 7-12 shows us that no true miracle (no deliverance) was attempted by them. They seemed to turn water to blood and bring frogs, but could not remove them. When God stepped in and created life by the word of Moses they were baffled.
(3) Where did they come from?
I believe that they came from, or were directed by Satan. 2 Timothy 3:8, 9 tells us that these magicians “withstood the truth,” and had “corrupted” minds. Both of these things are caused by Satan. They are a picture of the antichrist who will come “after the working of Satan with all power and signs and lying wonders” (2 Thessalonians 2:9).
(4) Do they exist today?
Most certainly they do. Sad to say there are many, like Jannes and Jambres, who “withstand the truth; men corrupted in mind,” and thus are “found worthless as regards the faith.” How many there are who profess to be Christians who have “a form of godliness, but [deny] the power thereof.” And we are instructed to “turn away” from them (2 Timothy 3:5). We are warned: “Ye have heard that antichrist shall come, even NOW are there many antichrists; whereby we know that it is the last time” (1 John 2:18).

 

We trust these few thoughts will be of help to you, and we look forward to any more questions or thoughts you may send our way.