@@ -116,17 +116,17 @@ <h2>Crackme search</h2>
116116 </ div >
117117 < div class ="col-9 col-sm-12 ">
118118 < select class ="form-select " id ="lang " name ="lang " multiple ="">
119- < option value ="C/C++ " {{ 'selected' if search_params.lang == 'C/C++ ' else '' }}> C/C++</ option >
120- < option value ="Assembler " {{ 'selected' if search_params.lang == ' Assembler ' else '' }}> Assembler</ option >
121- < option value ="Java " {{ 'selected' if search_params.lang == ' Java ' else '' }}> Java</ option >
122- < option value ="Go " {{ 'selected' if search_params.lang == ' Go ' else '' }}> Go</ option >
123- < option value ="Rust " {{ 'selected' if search_params.lang == ' Rust ' else '' }}> Rust</ option >
124- < option value ="WebAssembly " {{ 'selected' if search_params.lang == ' WebAssembly ' else '' }}> WebAssembly</ option >
125- < option value ="(Visual) Basic " {{ 'selected' if search_params.lang == '(Visual) Basic ' else '' }}> (Visual) Basic</ option >
126- < option value ="Borland Delphi " {{ 'selected' if search_params.lang == 'Borland Delphi ' else '' }}> Borland Delphi</ option >
127- < option value ="Turbo Pascal " {{ 'selected' if search_params.lang == 'Turbo Pascal ' else '' }}> Turbo Pascal</ option >
128- < option value =".NET " {{ 'selected' if search_params.lang == ' .NET ' else '' }}> .NET</ option >
129- < option value ="Unspecified/other " {{ 'selected' if search_params.lang == 'Unspecified/other ' else '' }}> Unspecified/other</ option >
119+ < option value ="C/C++ " {{ 'selected' if 'C/C++' in search_params.get('lang', []) else '' }}> C/C++</ option >
120+ < option value ="Assembler " {{ 'selected' if 'Assembler' in search_params.get(' lang', []) else '' }}> Assembler</ option >
121+ < option value ="Java " {{ 'selected' if 'Java' in search_params.get(' lang', []) else '' }}> Java</ option >
122+ < option value ="Go " {{ 'selected' if 'Go' in search_params.get(' lang', []) else '' }}> Go</ option >
123+ < option value ="Rust " {{ 'selected' if 'Rust' in search_params.get(' lang', []) else '' }}> Rust</ option >
124+ < option value ="WebAssembly " {{ 'selected' if 'WebAssembly' in search_params.get(' lang', []) else '' }}> WebAssembly</ option >
125+ < option value ="(Visual) Basic " {{ 'selected' if '(Visual) Basic' in search_params.get('lang', []) else '' }}> (Visual) Basic</ option >
126+ < option value ="Borland Delphi " {{ 'selected' if 'Borland Delphi' in search_params.get('lang', []) else '' }}> Borland Delphi</ option >
127+ < option value ="Turbo Pascal " {{ 'selected' if 'Turbo Pascal' in search_params.get('lang', []) else '' }}> Turbo Pascal</ option >
128+ < option value =".NET " {{ 'selected' if '.NET' in search_params.get('lang', []) else '' }}> .NET</ option >
129+ < option value ="Unspecified/other " {{ 'selected' if 'Unspecified/other' in search_params.get('lang', []) else '' }}> Unspecified/other</ option >
130130 </ select >
131131 </ div >
132132 </ div >
@@ -136,13 +136,13 @@ <h2>Crackme search</h2>
136136 </ div >
137137 < div class ="col-9 col-sm-12 ">
138138 < select class ="form-select " id ="arch " name ="arch " multiple ="">
139- < option value ="x86 " {{ 'selected' if search_params.arch == ' x86 ' else '' }}> x86</ option >
140- < option value ="x86-64 " {{ 'selected' if search_params.arch == 'x86-64 ' else '' }}> x86-64</ option >
141- < option value ="java " {{ 'selected' if search_params.arch == ' java ' else '' }}> java</ option >
142- < option value ="ARM " {{ 'selected' if search_params.arch == ' ARM ' else '' }}> ARM</ option >
143- < option value ="MIPS " {{ 'selected' if search_params.arch == ' MIPS ' else '' }}> MIPS</ option >
144- < option value ="RISC-V " {{ 'selected' if search_params.arch == 'RISC-V ' else '' }}> RISC-V</ option >
145- < option value ="other " {{ 'selected' if search_params.arch == ' other ' else '' }}> other</ option >
139+ < option value ="x86 " {{ 'selected' if 'x86' in search_params.get(' arch', []) else '' }}> x86</ option >
140+ < option value ="x86-64 " {{ 'selected' if 'x86-64' in search_params.get('arch', []) else '' }}> x86-64</ option >
141+ < option value ="java " {{ 'selected' if 'java' in search_params.get(' arch', []) else '' }}> java</ option >
142+ < option value ="ARM " {{ 'selected' if 'ARM' in search_params.get(' arch', []) else '' }}> ARM</ option >
143+ < option value ="MIPS " {{ 'selected' if 'MIPS' in search_params.get(' arch', []) else '' }}> MIPS</ option >
144+ < option value ="RISC-V " {{ 'selected' if 'RISC-V' in search_params.get('arch', []) else '' }}> RISC-V</ option >
145+ < option value ="other " {{ 'selected' if 'other' in search_params.get(' arch', []) else '' }}> other</ option >
146146 </ select >
147147 </ div >
148148 </ div >
@@ -152,17 +152,17 @@ <h2>Crackme search</h2>
152152 </ div >
153153 < div class ="col-9 col-sm-12 ">
154154 < select class ="form-select " id ="platform " name ="platform " multiple ="">
155- < option value ="DOS " {{ 'selected' if search_params.platform == ' DOS ' else '' }}> DOS</ option >
156- < option value ="Mac OS X " {{ 'selected' if search_params.platform == 'Mac OS X ' else '' }}> Mac OS X</ option >
157- < option value ="Multiplatform " {{ 'selected' if search_params.platform == ' Multiplatform ' else '' }}> Multiplatform</ option >
158- < option value ="Unix/linux etc. " {{ 'selected' if search_params.platform == 'Unix/linux etc. ' else '' }}> Unix/linux etc.</ option >
159- < option value ="Windows " {{ 'selected' if search_params.platform == ' Windows ' else '' }}> Windows</ option >
160- < option value ="Windows 2000/XP only " {{ 'selected' if search_params.platform == 'Windows 2000/XP only ' else '' }}> Windows 2000/XP only</ option >
161- < option value ="Windows 7 Only " {{ 'selected' if search_params.platform == 'Windows 7 Only ' else '' }}> Windows 7 Only</ option >
162- < option value ="Windows Vista Only " {{ 'selected' if search_params.platform == 'Windows Vista Only ' else '' }}> Windows Vista Only</ option >
163- < option value ="Android " {{ 'selected' if search_params.platform == ' Android ' else '' }}> Android</ option >
164- < option value ="iOS " {{ 'selected' if search_params.platform == ' iOS ' else '' }}> iOS</ option >
165- < option value ="Unspecified/other " {{ 'selected' if search_params.platform == 'Unspecified/other ' else '' }}> Unspecified/other</ option >
155+ < option value ="DOS " {{ 'selected' if 'DOS' in search_params.get(' platform', []) else '' }}> DOS</ option >
156+ < option value ="Mac OS X " {{ 'selected' if 'Mac OS X' in search_params.get('platform', []) else '' }}> Mac OS X</ option >
157+ < option value ="Multiplatform " {{ 'selected' if 'Multiplatform' in search_params.get(' platform', []) else '' }}> Multiplatform</ option >
158+ < option value ="Unix/linux etc. " {{ 'selected' if 'Unix/linux etc.' in search_params.get('platform', []) else '' }}> Unix/linux etc.</ option >
159+ < option value ="Windows " {{ 'selected' if 'Windows' in search_params.get(' platform', []) else '' }}> Windows</ option >
160+ < option value ="Windows 2000/XP only " {{ 'selected' if 'Windows 2000/XP only' in search_params.get('platform', []) else '' }}> Windows 2000/XP only</ option >
161+ < option value ="Windows 7 Only " {{ 'selected' if 'Windows 7 Only' in search_params.get('platform', []) else '' }}> Windows 7 Only</ option >
162+ < option value ="Windows Vista Only " {{ 'selected' if 'Windows Vista Only' in search_params.get('platform', []) else '' }}> Windows Vista Only</ option >
163+ < option value ="Android " {{ 'selected' if 'Android' in search_params.get(' platform', []) else '' }}> Android</ option >
164+ < option value ="iOS " {{ 'selected' if 'iOS' in search_params.get(' platform', []) else '' }}> iOS</ option >
165+ < option value ="Unspecified/other " {{ 'selected' if 'Unspecified/other' in search_params.get('platform', []) else '' }}> Unspecified/other</ option >
166166 </ select >
167167 </ div >
168168 </ div >
@@ -236,9 +236,9 @@ <h2>Crackme search</h2>
236236 < input type ="hidden " name ="csrf_token " value ="{{ csrf_token() }} ">
237237 < input type ="hidden " name ="name " value ="{{ search_params.name }} ">
238238 < input type ="hidden " name ="author " value ="{{ search_params.author }} ">
239- < input type ="hidden " name ="lang " value ="{{ search_params.lang }} ">
240- < input type ="hidden " name ="arch " value ="{{ search_params.arch }} ">
241- < input type ="hidden " name ="platform " value ="{{ search_params.platform }} ">
239+ {% for v in search_params.get('lang', []) %} < input type ="hidden " name ="lang " value ="{{ v }} "> {% endfor %}
240+ {% for v in search_params.get('arch', []) %} < input type ="hidden " name ="arch " value ="{{ v }} "> {% endfor %}
241+ {% for v in search_params.get('platform', []) %} < input type ="hidden " name ="platform " value ="{{ v }} "> {% endfor %}
242242 < input type ="hidden " name ="difficulty-min " value ="{{ search_params['difficulty-min'] }} ">
243243 < input type ="hidden " name ="difficulty-max " value ="{{ search_params['difficulty-max'] }} ">
244244 < input type ="hidden " name ="quality-min " value ="{{ search_params['quality-min'] }} ">
@@ -266,9 +266,9 @@ <h2>Crackme search</h2>
266266 < input type ="hidden " name ="csrf_token " value ="{{ csrf_token() }} ">
267267 < input type ="hidden " name ="name " value ="{{ search_params.name }} ">
268268 < input type ="hidden " name ="author " value ="{{ search_params.author }} ">
269- < input type ="hidden " name ="lang " value ="{{ search_params.lang }} ">
270- < input type ="hidden " name ="arch " value ="{{ search_params.arch }} ">
271- < input type ="hidden " name ="platform " value ="{{ search_params.platform }} ">
269+ {% for v in search_params.get('lang', []) %} < input type ="hidden " name ="lang " value ="{{ v }} "> {% endfor %}
270+ {% for v in search_params.get('arch', []) %} < input type ="hidden " name ="arch " value ="{{ v }} "> {% endfor %}
271+ {% for v in search_params.get('platform', []) %} < input type ="hidden " name ="platform " value ="{{ v }} "> {% endfor %}
272272 < input type ="hidden " name ="difficulty-min " value ="{{ search_params['difficulty-min'] }} ">
273273 < input type ="hidden " name ="difficulty-max " value ="{{ search_params['difficulty-max'] }} ">
274274 < input type ="hidden " name ="quality-min " value ="{{ search_params['quality-min'] }} ">
@@ -293,9 +293,9 @@ <h2>Crackme search</h2>
293293 < input type ="hidden " name ="csrf_token " value ="{{ csrf_token() }} ">
294294 < input type ="hidden " name ="name " value ="{{ search_params.name }} ">
295295 < input type ="hidden " name ="author " value ="{{ search_params.author }} ">
296- < input type ="hidden " name ="lang " value ="{{ search_params.lang }} ">
297- < input type ="hidden " name ="arch " value ="{{ search_params.arch }} ">
298- < input type ="hidden " name ="platform " value ="{{ search_params.platform }} ">
296+ {% for v in search_params.get('lang', []) %} < input type ="hidden " name ="lang " value ="{{ v }} "> {% endfor %}
297+ {% for v in search_params.get('arch', []) %} < input type ="hidden " name ="arch " value ="{{ v }} "> {% endfor %}
298+ {% for v in search_params.get('platform', []) %} < input type ="hidden " name ="platform " value ="{{ v }} "> {% endfor %}
299299 < input type ="hidden " name ="difficulty-min " value ="{{ search_params['difficulty-min'] }} ">
300300 < input type ="hidden " name ="difficulty-max " value ="{{ search_params['difficulty-max'] }} ">
301301 < input type ="hidden " name ="quality-min " value ="{{ search_params['quality-min'] }} ">
@@ -324,9 +324,9 @@ <h2>Crackme search</h2>
324324 < input type ="hidden " name ="csrf_token " value ="{{ csrf_token() }} ">
325325 < input type ="hidden " name ="name " value ="{{ search_params.name }} ">
326326 < input type ="hidden " name ="author " value ="{{ search_params.author }} ">
327- < input type ="hidden " name ="lang " value ="{{ search_params.lang }} ">
328- < input type ="hidden " name ="arch " value ="{{ search_params.arch }} ">
329- < input type ="hidden " name ="platform " value ="{{ search_params.platform }} ">
327+ {% for v in search_params.get('lang', []) %} < input type ="hidden " name ="lang " value ="{{ v }} "> {% endfor %}
328+ {% for v in search_params.get('arch', []) %} < input type ="hidden " name ="arch " value ="{{ v }} "> {% endfor %}
329+ {% for v in search_params.get('platform', []) %} < input type ="hidden " name ="platform " value ="{{ v }} "> {% endfor %}
330330 < input type ="hidden " name ="difficulty-min " value ="{{ search_params['difficulty-min'] }} ">
331331 < input type ="hidden " name ="difficulty-max " value ="{{ search_params['difficulty-max'] }} ">
332332 < input type ="hidden " name ="quality-min " value ="{{ search_params['quality-min'] }} ">
0 commit comments