1

Google 크롬 확장 프로그램에서 작동하는 스크립트를 만들었습니다. 나는 빨리 설명했다 : Dragonbound이라고 부르는 온라인 게임이있다. 스크립트가하는 일은 상대방에게 쏘지 않으면 안되는 힘을 계산하는 것입니다. 좋아, 나는 외부 서버에 내 스크립트를 수용하려고 시도했지만 분명히로드되었지만 실행되지는 않았다 ("로드 중"). 오류가 코드에있을 수 있다고 생각합니다 (스크립트 작성을 위해 비디오 게임의 javascript를 사용했습니다). 대리는 원래의 코드는 JSON과 외부 스크립트를 호출하게하는 JS :내 스크립트 (Google 크롬 확장 프로그램)로드 오류

:

Main Javascript in Codeviewer

manifest.json을

{ 
    "name": "DragonBound Aimbot 2.0", 
    "version": "2.0.0", 
    "manifest_version": 2, 
    "description": "DragonBound Aimbot Hack - HTML5", 
    "browser_action": { 
    "default_popup": "popup.html", 
    "default_icon": "icon.png" 
    }, 
    "permissions": ["tabs", "notifications", "http://*.dropbox.com/u/91461506/*", "https://*.dropbox.com/u/91461506/*"], 
    "background": { "page": "background.html", "persistent" : false }, 
"content_scripts": [ 
    { 
     "matches": ["http://*.dragonbound.net/*","http://*.dropbox.com/u/91461506/*"], 
     "js": ["jquery2.js","DragonBoundAimbot.js"], 
     "run_at": "document_end" 
    } 
    ], 
    "icons": {"16": "16.png", "48": "48.png", "128": "128.png"}, 
    "web_accessible_resources": [ 
    "ranks/*","48.png" 
    ], 
    "homepage_url" : "http://www.dropbox.com" 
} 

-code는 외부 스크립트에 대한 호출을

chrome.extension.sendRequest({type:"init"},function(response){ 

    if(response.ingame){ 
     chrome.extension.sendRequest({id:"loading",type:"notification2",text:["Loading","Loading scripts from dropbox.com..."]}, function(response) {}); 
     chrome.extension.sendRequest({type:"loadscript",url:'http://dl.dropbox.com/u/91461506/prueba2.js',cache:false}, function(response) { 
      if(response.type == 1){ 
       eval(response.scriptcontent); 

      }else if(response.type == 0){ 
       chrome.extension.sendRequest({id:"loading",type:"closenotification2"}, function(response) {}) 
       chrome.extension.sendRequest({id:"errorloading",time:0,type:"notification2",text:["Error","Failed to load the script, try again later"]}, function(response) {}); 
      } 
     }); 
    }else{ 
     chrome.extension.sendRequest({type:"loadscript",url:'http://dl.dropbox.com/u/91461506/page.js',cache:false}, function(response) { 
      if(response.type == 1){ 
       eval(response.scriptcontent); 
       PAGEDBA.init(); 
      }else if(response.type == 0){ 

      } 
     }); 
    } 
}); 

Google 크롬의 확장 프로그램과 확장 프로그램을 비 압축 형식으로 업로드했습니다 :
Estension uncompressed .ZIP

Preview Preview 2

비디오 게임의 웹 페이지의 링크 당신은 eval()를 사용 DragonBound.net

답변

1

이지만, eval()은 크롬 확장에 사용할 수 없습니다. 이 특정한 경우에 가장 쉬운 해결책이 될 것

http://developer.chrome.com/apps/sandboxingEval.html

+0

은 단순히 당신이 확장 자체를로드하려는 파일을 포함합니다. – gengkev

+0

작동하도록 관리 했습니까? :디 –

관련 문제